HELP ARTICLE

How to set a checkbox field using Extender Enterprise


I’m trying to check the “Allow SO Commitments” field in Purchase Order Entry using an Extender Enterprise Set Field Values action.  However I’ve tried setting the value to 1 or TRUE or “TRUE”, I always get the error:

Type incompatibility ‘Allow SO Commitments’.

How can I set this field to be checked? 



From a Dexterity perspective, Checkboxes and Boolean fields would be set to true or false.
Currently in Extender, there isn’t a way using the Set Field Values window as it doesn’t convert the constant value entered into the Boolean value required.
However, this is possible to do using the “Run Dynamics GP script” action since we can set the value via Dexterity sanScript.

The code used to do this is:

{Check to make sure that the field is not disabled}
if Field_GetBooleanProperty(‘Allow SO Commitments’ of window POP_PO_Entry
  of form POP_PO_Entry, FIELD_PROP_DISABLED) = false then
 
   {Check to see if already marked, if so then don’t need to re-mark it again}
 if not(‘Allow SO Commitments’ of window POP_PO_Entry
   of form POP_PO_Entry) then
 
  {Wasn’t marked previously. Mark it}
  ‘Allow SO Commitments’ of window POP_PO_Entry
   of form POP_PO_Entry = true;
 
  {and run the field change script}
  run script ‘Allow SO Commitments’ of window POP_PO_Entry
   of form POP_PO_Entry;
 end if;
end if;

RECENT POSTS


Use the REST Connector to parse nested Value Arrays
SmartConnect email task fails with error: An invalid character was found in the email header
Does SmartConnect import into Avalara Avatax software
Could not initialize a collection when launching SmartConnect
ERROR [HY000] [Microsoft][ODBC Excel Driver]General error Unable to open registry key when you open a SmartConnect map.

POPULAR POSTS


SSL Security error using OLEDB Connection
This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms
Removed Part: /xl/vbaProject.bin part. (Visual Basic for Applications (VBA))
The server process could not be started because the configured identity is incorrect.
Using WINSCP and a task to upload or download files from an SFTP site

CATEGORIES

TAGS

Business Central CRM D365 Business Central Dynamics 365 dynamics crm Dynamics GP Dynamics NAV Econnect Employee Spotlight eone eOne News error Error Message Events Excel Excel Report Builder Extender Flexicoder GP integration Map Meet the Team Microsoft dynamics crm Microsoft Dynamics GP Navigation List Builder Office Relationships partners Popdock release Reporting SalesForce SalesForce.com SmartConnect SmartConnect.com SmartConnect Bootcamp SmartConnect Maps SmartConnect Office Hours SmartList SmartList Builder SmartPost SmartView SQL Tech Tuesday Templates training

Integrate & Automate without Any Code.

SmartList Data has Never Been Faster.

The Easiest Way to Report on GP Data.