GetResourceDetails

Summary

The GetResourceDetails function will retrieve all your resources based on type and provide a row per resource with the full tree/category.

The values will be determined by the following parameters:

  • Resource Type (Required)
  • Tree Like (Required)
📘

Note:

Resource Type must include one of the following values -

  • Items
  • Suppliers
  • Equipment
  • Customers

Tree Like parameter is required, however can provide a blank value ("") which will provide all resources with the type selected above. If a value is provided it will be used as a contains query for the entire tree/category.

For more detail on the parameters see the full list of descriptions here.

function (ResourceType as text, TreeLike as text)

Invoking the Function

Here is an example of invoking them using Power Query or through the visual editor.

 GetResourceDetails("Items", "test")
📘

Note:

You can fill out the function parameters and click _Invoke _to create the table automatically. See example below.

GetResourceDetails Result

The following field columns will be outputted in a table.


ResourceIdResourceNameTreeTypeRow
3c0716f0-b45f-47aa-a514-a7edcbfe57d2Wine BottleCustomers > ABI > Wine BottleCustomers1
ee2de2e0-046c-4f39-adc4-ab90e81a4986PrabInst1Customers > PraTest > PrabInst1Customers2
fa35fe67-6a33-4b22-9b5f-3c3eaf1f237aokokCustomers > ABI > okokCustomers3
ed116ecf-2d35-4246-9568-bf9010564b63NabiscoCustomers > Customers > NabiscoCustomers4
7423a31c-d604-4926-94e3-a45bb8175ebeLocation rename issueCustomers > ABI > Beverage > Beer > Sour > Location rename issueCustomers5

#table({
  "ResourceId",
  "ResourceName",
  "Tree",
  "Type",
  "Row"
}, {})


👍

Tip:

Use a blank ("") value for Tree Like to pull all resources based on type.

 GetResourceDetails("Items", "")