The Now Platform® Washington DC release is live. Watch now!
10-20-2021 11:53 PM
hi.
I tried the following code.
var latest_comment = fd_data.trigger.current.comments.getJournalEntry(1);
return latest_comment;
Error : attempting to use undefined input = 'current' from MY_SUB_FLOW_NAME
解決済! 解決策の投稿を見る。
10-21-2021 02:58 AM
Hi, if you use sub flow, you will need to define Inputs in the sub flow so that the main flow can pass the incident record to be updated to the sub flow. The "current" variable does not work in sub flow.
1. In the sub flow, define the input as Target incident record - for example.
2. In the main tab, you would need to pass the incident record to the sub flow's Target incident record input.
BTW, maybe you can consider putting the update logic(script) in the main flow, which will make life much easier.
10-21-2021 02:58 AM
Hi, if you use sub flow, you will need to define Inputs in the sub flow so that the main flow can pass the incident record to be updated to the sub flow. The "current" variable does not work in sub flow.
1. In the sub flow, define the input as Target incident record - for example.
2. In the main tab, you would need to pass the incident record to the sub flow's Target incident record input.
BTW, maybe you can consider putting the update logic(script) in the main flow, which will make life much easier.
10-21-2021 03:12 AM
Please remember to Publish the sub flow after modifying it, so that the main flow can see the changes. Good luck!