I've created a sales order form, and when I select the account for the sale via Lookup it returns the ID for the Billing Country, Billing State, Shipping Country and Shipping State instead of the value.
Here's the code I am using to pull the account information into the order form:
selected_Sold_To = Account [ID = input.Sold_To];
input.Billing_Street = selected_Sold_To.Billing_Street;
input.Billing_City = selected_Sold_To.Billing_City;
input.Billing_Country = selected_Sold_To.Billing_Country.toString();
input.Billing_State_Province = selected_Sold_To.Billing_State_Province.toString();
input.Billing_ZIP_Postal_Code = selected_Sold_To.Billing_ZIP_Postal_Code;
input.Shipping_Street = selected_Sold_To.Shipping_Street;
input.Shipping_City = selected_Sold_To.Shipping_City;
input.Shipping_Country = selected_Sold_To.Shipping_Country.toString();
input.Shipping_State_Province = selected_Sold_To.Shipping_State_Province.toString();
input.Shipping_ZIP_Postal_Code = selected_Sold_To.Shipping_ZIP_Postal_Code;
If I remove .toString() after Billing_Country for example I receive a message that "Variable 'Billing_Country' is already defined of data type 'STRING' but trying to update 'BIGINT' data type".
I've searched the forums but cannot find a clear cut guide to getting this to work. How can I fix this?
Attached are my (incorrect) results.