Open jefim opened 5 months ago
The Salesforce API (and Salesforce as a whole) only allows the creation of Invoices through existing Orders. Thus, it's not possible to create invoices using the Create SObject task in Frends. You can see on the Invoice documentation that the create()
call isn't supported, whereas e.g., on Order it is.
It seems that the only way to create invoices through the API is for Fulfillment Orders as described here. The issue with that is that we still wouldn't be able to create them using the Create SObject task, we'd rather have to use a url like /commerce/fulfillment/fulfillment-orders/fulfillmentOrderId/actions/create-invoice
.. If we want to pursue Invoice creation in the future, we'd first have to figure out the process of creating the Fulfillment orders, and then creating invoices for them.
This issue has been linked to frends-templates.sleekplan.app/feedback/157966. You can follow the discussion there!