LightningFlowComponents icon indicating copy to clipboard operation
LightningFlowComponents copied to clipboard

*ConvertDatetoDatetimeFlowAction.cls* - When called from a flow doesn't bulkify properly and sets bad data if used from an import

Open lorengd opened this issue 2 years ago • 1 comments

How to use GitHub

  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Steps to reproduce

  1. Create a record triggered flow that calls this action: https://unofficialsf.com/convert-date-to-datetime-flow-action/
  2. Trigger the flow for multiple records at once using an import.
  3. The value calculated for the last record through will be saved for all records.

Expected behaviour

It should properly save the right value for each record.

Actual behaviour

It saves the value of the last record through on all records.

Line 46 needs to be moved inside the for loop. Then it works properly.

lorengd avatar Dec 02 '22 09:12 lorengd