Question

How to extract nested process variables in Workflow

  • 5 April 2024
  • 2 replies
  • 75 views

Badge +3

Hi,

In IFS Cloud 23R1 workflow, I’m trying to access a nested variable but nothing tried so far can get at it. As an example, below is the payload from CustomerOrderHandling.svc/CalculateAndFetchSalesLineTotalWithHeaderParams (called during creation of a customer order line):

If I want to check the value of BaseSaleUnitPrice in a gateway I’d expect to be able to reference it as ValidationRec.BaseSaleUnitPrice in an expression. However it’s not working and when inspecting the debug, the contents of ValidationRec are not even shown:

Any suggestions?

Thanks,

Ian


2 replies

Userlevel 4
Badge +9

@ibalfe could you share your workflow diagram and setting where you do the READ? Probably you have to use the nested entity feature but hard to tell without a nice workflow image ;-)
 

 

Userlevel 2
Badge +9

@ibalfe, unfortunately with the current information it's unclear what the payload structure is like. 

Normally with an array you can use something like ValidationRec[0].ValidationRec.etc.

In this case the variable might be refering to a record in a different projection with the “com.ifsworld …...”. 

Could you post the entire payload or reponse JSON here?

Reply