Open wuservices opened 3 years ago
oh interesting... I had no idea there was a __pc
API ending. I think it just needs to be added to this line of code:
https://github.com/ChuckJonas/ts-force/blob/master/ts-force-gen/src/util.ts#L5
Would be a good opportunity to rewrite the function to be a little less horrible.
When generating code in an organization with Person Accounts enabled, custom Contact fields on an Account are exposed as
Account.ContactField__pc
andAccount.OtherContactField__pc
, but the code generator names these aspc
andpc_dup
(thenpc_dup_dup
and so on for more fields), instead ofcontactField
andotherContactField
.This isn't a huge deal, since you can still fix it by overriding the defaults per the awesome docs: