Question

Workflow - Fetch Variable from a Newly Created Record

  • 19 June 2023
  • 2 replies
  • 114 views

Badge +12

Hello,

I’m trying to create a new Work Task and fetch the key value TaskSeq to create a new Assignment in Cloud. When I debug the workflow, I get ‘Resource not found’ error. Am I passing the value wrong?

Work Task Creation
Fetch the TaskSeq value from the created Work Task above
Error ‘Resource not found’

Kind Regards

Priyanka Cecilia


2 replies

Userlevel 3
Badge +5

Hi,

It seems you also need to pass in WoNo attribute when creating a new Work Task.

 

Can you give it a try, and see?

 

Work Task Creation
Works in debug 

 

Badge +12

Hi @kamnlk,

Yes, I was able to resolve this issue. Thank you.

Please assist if you are aware of my other queries: 

Issue 1: I’ve added a custom attribute as a Reference field to Prepare Work Order screen. While debugging in the Workflow, instead of getting the value I’ve selected in the dropdown, it fetches the 1st value from that Reference Entity.

For example: Dropdown values are ‘Value A’ and ‘Value B’. I’ve selected ‘Value B’ from the dropdown but in the workflow it picks up ‘Value A’.

Issue 2: Along with that, I can see the ObjKey of that value instead of the field value as shown below. 

If I use a baseline Reference field, I do not face this issue.

Could there be any reason for this with a custom reference field? 

Value in the Prepare WO screen dropdown
Value I get while debugging the workflow

Kind Regards

Priyanka Cecilia

Reply