Misc Tips and trix
Last updated
Was this helpful?
Last updated
Was this helpful?
In case database sysdate is required one option is to use projections WorkTasksHandling, function GetSiteDate. Other methods may exist..
Dates sent to IFS generally must be in the format YYYY-DD-MMTHH:MI:SSZ
if you don't know which Aurena page that have the information you're looking for; try searching for the Projection Name or the Projection Description in the API Explorer for keywords and you often find the Projection you need.
In Read operation you can request count of the returned entity set from IFS.
This option is not supported by all endpoint but if it is, response will include TotalCount attribute. Notice that this value is not dependent of the top/skip values added to operation.
If you need to get default values for a Create operation use (if exists) <Entity>_Default (from set) operation. Use the def values in Create operation machine step and set the iterator to make parameter assignment easier.
When filtering on a attribute that is of type Enum it possible to check the Projection metadata to check which values are allowed.
In each response there's a JSON tag that is named @odata.contex. Following this link will give you the metadata of the projection. Then you can search the XML file for the attribute you are looking for:
You can also add the $metadata tag to any Projection URL.
To quickly copy the OData requests URL in multiple rows windows in IFS Aurena there's a "Copy data link" option in the search bar above every list or multiple row windows in Aurena. If you perform a search the link will also include the filters and select conditions.
What you get in the clipboard:
Developing OData Flows often result in multiple calls to fetch the dataset you need. Instead of putting the calls machine steps in sequential order in the Flow you can group calls that are related and connect them with data arrows. When dataset is fetched and merged, connect the data arrow to the Flow.