Author Topic: Is there any reason that Set field by Name shouldn't work with ABM functions?  (Read 1325 times)

juskaiser

  • Member
  • *
  • Posts: 8
I'm working on a script that iterates using loops and a variable (in the examples below I haven't incorporated the variable yet). Is there any reason why the Set Field script step shown below works fine, while the Set Field By Name script step doesn't work at all? This one has be baffled because I think I've used set field by name script steps with the ABM plugin before without any issues.

Code: [Select]
Set Field [ Contacts::Phone 5 UID; PCAB_AddMV( "Phones" ; Contacts::Phone 5 Value ; Contacts::Phone 5 Label) ]

Set Field By Name [ Contacts::Phone 5 UID; PCAB_AddMV( "Phones" ; Contacts::Phone 5 Value ; Contacts::Phone 5 Label) ]

Thanks for any help.

Paul Dacanay

  • Global Moderator
  • Member
  • *****
  • Posts: 47
In order to use the Set Field By Name script step, the target field name needs to be enclosed in quotes, like so:

Set Field By Name [ "Contacts::Phone 5 UID" ; PCAB_AddMV( "Phones" ; Contacts::Phone 5 Value ; Contacts::Phone 5 Label) ]

As opposed to a "literal" mapping of the field, like so:

Set Field By Name [ Contacts::Phone 5 UID ; PCAB_AddMV( "Phones" ; Contacts::Phone 5 Value ; Contacts::Phone 5 Label) ]


Thanks for using our plug-in!