Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Unable to fetch Sales Order details from App composer trigger on Install Based Asset

edited Dec 11, 2024 10:22AM in Supply Chain Orchestration

Dear experts,

We are unable to fetch Sales Order details from App composer trigger on Install Based Asset using an standard SalesOrderHeaderVO. Could you suggest on this issue?

The following steps are performed:
1. Navigate to App Composer > ERP and CRM Cloud > Install Base Asset object > Triggers
2. Create a ViewCriteria with below details

def so= "547"
def vo = newView('SalesOrderHeader')
def vc = newViewCriteria(vo,' SalesOrderNumber = '+so)
def iter = vo.findRowsMatchingCriteria(vc,-1)
while (iter.hasNext()) {
def r = iter.next()
setAttribute('PO_Number_test_c',r.CustomerPoNumber)
}

3. In above script we are trying to fetch CustomerPoNumber(OrderHeader Attribute) and map with one IB asset DFF.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!