function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sanjana RajasekarSanjana Rajasekar 

Mass Update Account Forecasts Actions

I came across Mass Update Account Forecasts Actions (https://help.salesforce.com/s/articleView?id=sf.admin_manufacturing_standard_invocable_actions.htm&type=5) which updates multiple values of a single metric of an account forecast.

So I am trying to update the last year's order quantity metric for a product on particular period in account forecast by a flow.

Error Occurred: Unexpected data type for periods: expected String[]

Able to get the records using the query but I am not able to view the PeriodIds in the UI.
 
SELECT Id, AccForecastPeriodMetricId, AccountProductForecastId, Name, PeriodId, PastOrdersQuantity
From AccountProductPeriodForecast
WHERE AccountProductForecastId = '0yB3t000000gGEKEA2'

 
SubratSubrat (Salesforce Developers) 
Hello Sanjana ,

The error message you are seeing ("Unexpected data type for periods: expected String[]") suggests that the data type for the "periods" input variable in your flow is not set correctly. It is expecting a string array, but it is receiving a different data type.

Would request you to check your flow again and let me know further .
If possible please share screen shot of your flow.

Thank you.
Sanjana RajasekarSanjana Rajasekar
User-added image
Hi @Subrat, This is my inputs to the action "Mass Update Account Forecasts Actions"