hougaard / Simple-Object-Designer

Issue tracking for the Simple Object Designer for Business Central
7 stars 0 forks source link

Field Transfer from Customer to Sales Header (Shipping Agent Code and Shipping Agent Service Code) #276

Closed mikeswartzentruber closed 10 months ago

mikeswartzentruber commented 10 months ago

It's not letting me create a field transfer from the customer to the Sales Header for the Shipping Agent Code and the Shipping Agent Service Code. When i request a Field Transfer it says no such field exists on the Sales Header, then i say Yes create one (which i don't think i need).

image

Then when i go to publish it, it gives this error:

Deployment failed. Errors: App ID : 4a451360-d646-4a6e-b63e-a16686ba9608 Message : { Extension compilation failed Management/FieldManagement.al(110,15): error AL0132: 'Record "Sales Header"' does not contain a definition for 'Shipping_Agent_Code' }

Checking into what it did, it appears like it created a field on the customer instead of the Sales Header??

image

I deleted that field (Shipping_Agent_Code) on table 18 and did the field transfer again on the Table 18, field "Shipping Agent Code" and it recreated that same field on table 18 in SOD.....

So i manually added a field called "Shipping_Agent_Code" on table 36 (Sales Header) & manually deleted the original field on table 18. (customer)

Now when i do a field transfer it gives this error:

image

Now i'm really confused what i'm doing wrong, because if i publish without a field transfer now, it does NOT transfer the Shipping Agent Code from the customer to a sales quote....

Can someone direct me as to what i'm doing wrong?

mikeswartzentruber commented 10 months ago

Ok, i think i was thinking all wrong... This already happens if i set the default value on the customer "Ship-to Code" instead of on the customer directly...

Non Issue after all!