how to source the customer on a line level for on ...
# ask-stanley-ai
n
how to source the customer on a line level for on the vendor bill from a custom project filed on the header
c
AI generated answer (using internal Slack threads):
To source the customer on a line level for the vendor bill from a custom project field on the header, you would need to use a SuiteScript. Unfortunately, workflows cannot manipulate the expenses sublist, which is what you would need to do in this case. Here is a general idea of how you might approach this with SuiteScript: 1. Create a User Event script that triggers on the creation or editing of a Vendor Bill. 2. In the script, access the custom project field from the header of the Vendor Bill. 3. Loop through each line item on the Vendor Bill. 4. For each line item, set the value of the customer field to the value you retrieved from the header. Please note that this is a general approach and you may need to adjust it to fit your specific needs. Also, remember to thoroughly test your script in a sandbox environment before deploying it to your live environment. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.820445955
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.8197577
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.815183401
Please provide your feedback on this answer.