Hello,
I am making a Creator app that passes information into Books and creates an estimate.
Everything is working except this one thing: No matter what value I pass for my shipping address, the organization's default shipping address is placed on the estimate.
I have tried writing the function two ways:
1. (This format works for my line items)
shippingAddress = Map();
shippingAddress.put("address",input.Shipping_Address.address_line_22);
shippingAddress.put("city",input.Shipping_Address.district_city2);
shippingAddress.put("state",input.Shipping_Address.state_province2);
shippingAddress.put("zip",input.Shipping_Address.postal_Code2);
fieldValues.put("shipping_address",shippingAddress);
2. (This format works for my custom fields, but creates an error that reads "ensure the shipping address is less than 100 characters" when I use it for this purpose.)
fieldValues.put("shipping_address",{{"api_name":"address","value":input.Shipping_Address.address_line_22},{"api_name":"city","value":input.Shipping_Address.district_city2},{"api_name":"state","value":input.Shipping_Address.state_province2},{"api_name":"zip","value":input.Shipping_Address.postal_Code2}});
Neither works. It is always, always the default shipping address that populates on the estimate.
Is it possible to do this? If so, what am I doing incorrectly?
Many thanks.