Skip to main content

Hello framework experts,

 

I am on 24R1 at the moment. I have a scenario to import employee expenses from an external service provider. I created an external payment template and i can successfully import the file. Until here, there is no problem.

 

 

In the external file, I have GL account and Cost Center that are mapped to BankTranscationInfo1 and BankTransactionInfo2.

 

I want to create a workflow that will loop payment lines for the particular load and read the 2 fields and set CodeA and CodeB values.

 

Here is my first part of workflow. I can read the array.

 

Here I am assigning variables. But i have an error that I cannot resolve by myself.

 

 

Here i want to update the 2 fields.

 

I am new to workflows and discovering how it works. Anyone to help for this scenario?

 

Thanks

 

Furkan 

 Hi,

it seems in the script task you are creating CodeA and CodeB variable you need to set that variables for them to be used in the next tasks 

 

on the 2nd point,

you need to declare the LoadItemId on the nested entity parameters section, since its a key attribute in the nested entity 

when running update action its good to read the item you are updating before running the update api call. 

 

on a side note:

To loop through elements you need to use The Sequential Multi Instance task to loop something in workflow. Also note that the update operation only happens per record and not for the entire collection at once 


Hi ​@kamnlk 

Can you please show me how do I declare the LoadItemId on the nested entity parameter section?

I added sequential multi instance for loops. Thanks for this info

Furkan


hi ​@Furkan Zengin 

 

I was referring to something like below, hope it helps 

 


Reply