darrenhillconsulting
11/04/2024, 5:51 PMCeligo AI
11/04/2024, 5:51 PMAI generated answer (using internal Slack threads):In the context of a postSourcing script, the sublistId field in the context object should not be undefined or null. This field represents the ID of the sublist that is currently being processed. If you are getting a null value for sublistId, it might be due to the fact that the script is being triggered in a context where there is no sublist involved. In the first thread, the user is getting a null value for sublistId when working with the expense sublist. This could be due to the fact that the script is being triggered in a context where the expense sublist is not involved. In the second thread, the user is trying to fire logic only when the item sublist field is selected. They are using the sublistId field to check if the selected field is 'item'. If the sublistId is not 'item', the function returns without executing the logic. This suggests that the sublistId field should always have a value when a sublist field is selected. In the third thread, the user is looping through the sublist items and getting the value of the fields. They are using the sublistId field to get the current sublist value. This suggests that the sublistId field should always have a value when a sublist field is being processed. Therefore, in a postSourcing script, the sublistId field in the context object should always have a value when a sublist is being processed. If it is null or undefined, it might be due to the script being triggered in a context where there is no sublist involved. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Celigo AI
11/04/2024, 5:51 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.845399261
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.843213141
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.826557815
Celigo AI
11/04/2024, 5:51 PM