how to get createdfrom from vendor bill using scri...
# ask-stanley-ai
d
how to get createdfrom from vendor bill using script?
c
AI generated answer (using internal Slack threads):
To get the
createdfrom
field from a Vendor Bill using a script, you would need to create a custom field of type List/Record - Transactions and set that to the value of the Purchase Order (PO) you're coming from. This is because the Vendor Bill record does not have a
createdfrom
field by default. Here's a general idea of how you might do this: 1. Create a custom field on the Vendor Bill record. This field should be of type List/Record - Transactions. 2. When you're creating a Vendor Bill from a PO (presumably using the
record.transform
method), you can set the value of this custom field to the internal ID of the PO. Please note that this approach requires scripting. If you're doing this through the UI, you might be able to get the PO's internal ID from the URL parameters, but this would also require a client script. ****** 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.857428193
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.845964968
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.841280937
Please provide your feedback on this answer.