POPULATE A FIELD BASED ON OTHER FIELD using APPLICATION COMPOSER ( Groovy script )
AIM : Update a field based on other fields or any other logic using server scripts Groovy script Groovyscript
In this doc shows thw same using a exmple to SUPPLY CHAIN EXECUTION > QUALITY MANAGEMENT > QUALITY ISSUE
In picture Based on yellow field we need to fill the green field
Step 1 : Create a sandbox and enter into Applicaiton Composer
Step 2 : Application Composer > ERP SCM cloud > Quality Issue > Server Scripts > Field Trigger
you can find this workflow ids using report or using GET rest api /fscmRestApi/resources/11.13.18.05/qualityIssues/
Click save and close and publish the sand box.
In this doc shows thw same using a exmple to SUPPLY CHAIN EXECUTION > QUALITY MANAGEMENT > QUALITY ISSUE
In picture Based on yellow field we need to fill the green field
Step 1 : Create a sandbox and enter into Applicaiton Composer
Step 2 : Application Composer > ERP SCM cloud > Quality Issue > Server Scripts > Field Trigger
if (QualityTypeName == "Non-Conformance - Work in Process") {setAttribute("Workflow", 300000031016276)}else if (QualityTypeName == "Non-Conformance - Receiving") {setAttribute("Workflow", 300000031016275)}
you can find this workflow ids using report or using GET rest api /fscmRestApi/resources/11.13.18.05/qualityIssues/
Click save and close and publish the sand box.
Comments
Post a Comment