AAC

Forum Replies Created

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • in reply to: API login session handling #2414
    AAC
    Participant

    Colin,

    Thanks for the quick reply. That sounds good, I will modify my code to follow that pattern.

    Thank you.

    in reply to: API changing individual password #963
    AAC
    Participant

    was able to sort out the updateIndividualAccount() issue, it was failing on the PhoneType where retrieveIndividualAccount() was returning the value in all caps and the update function was expecting only the first letter to be caps.

    in reply to: API changing individual password #962
    AAC
    Participant

    One of the issues we are having is that, when doing this update, some accounts work and some dont, the $neon_args is pretty much identical beside the field values from the records that work and dont work.

    updateIndividualAccount() returns null for the ones that dont work. Troubleshooting for quite some time but cant seem to see the issue, can i get some guidance.

    in reply to: API changing individual password #961
    AAC
    Participant

    Check incase this dropped out let me ask the question here again,

    so for an individual record if there are multiple addresses how does the array key need to be formatted here:

    $neon_args[“individualAccount.primaryContact.addresses.address.isPrimaryAddress”] =
    $neon_args[“individualAccount.primaryContact.addresses.address.isShippingAddress”] =
    $neon_args[“individualAccount.primaryContact.addresses.address.addressType.id”] =
    $neon_args[“individualAccount.primaryContact.addresses.address.addressType.Name”] =
    $neon_args[“individualAccount.primaryContact.addresses.address.addressLine1”] =
    $neon_args[“individualAccount.primaryContact.addresses.address.addressLine2”] =
    $neon_args[“individualAccount.primaryContact.addresses.address.addressLine3”] =
    $neon_args[“individualAccount.primaryContact.addresses.address.addressLine4”] =
    $neon_args[“individualAccount.primaryContact.addresses.address.city”] =
    $neon_args[“individualAccount.primaryContact.addresses.address.state.code”] =
    $neon_args[“individualAccount.primaryContact.addresses.address.state.name”] =
    $neon_args[“individualAccount.primaryContact.addresses.address.province”] =
    $neon_args[“individualAccount.primaryContact.addresses.address.county”] =
    $neon_args[“individualAccount.primaryContact.addresses.address.country.id”] =
    $neon_args[“individualAccount.primaryContact.addresses.address.country.name”] =
    $neon_args[“individualAccount.primaryContact.addresses.address.zipCode”] =
    $neon_args[“individualAccount.primaryContact.addresses.address.zipCodeSuffix”] =
    $neon_args[“individualAccount.primaryContact.addresses.address.startDate”] =
    $neon_args[“individualAccount.primaryContact.addresses.address.endDate”] =

    in reply to: API add value to organization company profile #960
    AAC
    Participant

    Colin,

    How do you update multiple fields such as what you got above, same with addresses for records,

    ie if you have:

    &organizationAccount.customFieldDataList.customFieldData.fieldId=45
    &organizationAccount.customFieldDataList.customFieldData.fieldOptionId=47
    &organizationAccount.customFieldDataList.customFieldData.fieldValue=

    &organizationAccount.customFieldDataList.customFieldData.fieldId=50
    &organizationAccount.customFieldDataList.customFieldData.fieldOptionId=10
    &organizationAccount.customFieldDataList.customFieldData.fieldValue=

    how do you pass that in the parameters ?

    in reply to: API changing individual password #959
    AAC
    Participant

    Colin,

    Thanks we got this done by mapping the entire list of items, but slight issue with the address post in the question below.

    One thing if you can clear for me, which you also mentioned in another thread, so I will ask in there,

    API add value to organization company profile

    in reply to: API changing individual password #949
    AAC
    Participant

    im guessing we need to map the entire records. is there a quick way to map the record and just change the one we want to update ?

    ie: by getting the retrieveIndividualAccount and putting it on updateIndividualAccount and change the field need to be updated ?

    • This reply was modified 3 years, 10 months ago by AAC.
    in reply to: API Convert to Individual Account #944
    AAC
    Participant

    Thanks Colin, that worked.

    in reply to: API listAccounts #943
    AAC
    Participant

    Thanks Colin, i found it later that day but couldnt update the thread.

    in reply to: API Convert to Individual Account #936
    AAC
    Participant

    I am guessing the issue is with adding using the linkIndividualToOrganization() call

    but I am using that becuase if I use individualAccount.existingOrganizationId with the created Organization ID I get this error,

    ExistingOrgnizationId should be empty, you can use linkIndividualToOrganization after individual create success.

    What I need to happen is the same effect of creating an Organization records then “Convert to Individual Account” of the contact to create the user, so that they are tied together.

    but using the API,

    So far the flow is

    createOrganizationAccount()
    createIndividualAccount()

    in reply to: API Convert to Individual Account #935
    AAC
    Participant

    Whats most notable with that is that two Contacts show up with the same name, one set as Primary and the other with the Set option, where there should only be one.

    Image

    in reply to: API createIndividualAccount Error 10023 #932
    AAC
    Participant

    ok got it, the boolean value needed to be a string,

    in reply to: API createIndividualAccount Error 10023 #931
    AAC
    Participant

    Just to add a bit more context here is the args sent to the parameters

    $neon_args[‘individualAccount.primaryContact.firstName’] = ‘AACFirst’;
    $neon_args[‘individualAccount.primaryContact.lastName’] = ‘AACLast’;
    $neon_args[‘individualAccount.primaryContact.email1’] = ‘AACemail@aacemail.com’;
    $neon_args[‘individualAccount.primaryContact.phone1’] = ‘1234543210’;
    $neon_args[‘individualAccount.primaryContact.prefix’] = “Mr.”;
    $neon_args[‘individualAccount.primaryContact.title’] = “Programmer”;
    $neon_args[‘individualAccount.primaryContact.addresses.address.isPrimaryAddress’] = true;
    $neon_args[‘individualAccount.primaryContact.addresses.address.addressLine1’] = ‘100 Steet’;
    $neon_args[‘individualAccount.primaryContact.addresses.address.addressLine2’] = ”;
    $neon_args[‘individualAccount.primaryContact.addresses.address.city’] = ‘Medford’;
    $neon_args[‘individualAccount.primaryContact.addresses.address.state.name’] = ‘New Jersey’;

    function createIndividualAccount($neon_args){
    $neon = new Neon();

    $credentials = array( ‘orgId’ => NEON_ORGID, ‘apiKey’ => NEON_APIKEY );

    $loginResult = $neon->login($credentials);
    $result = ”;
    if ( isset( $loginResult[‘operationResult’] ) && $loginResult[‘operationResult’] == ‘SUCCESS’ ) {

    $request = array(
    ‘method’ => ‘account/createIndividualAccount’,
    ‘parameters’ => $neon_args,
    );
    $result = $neon->go( $request );
    $neon->go( array( ‘method’ => ‘common/logout’ ) );
    }
    return $result;
    }

    in reply to: OAuth 2.0, WordPress and API Password Reset #927
    AAC
    Participant

    Colin,

    Thanks for the quick reply. I was testing what you were saying and it was going good with WP generating the token process for the reset and hooking into the reset success to update on the Neon side.

    But this was only working for those accounts already having a user in WordPress.

    So we will use your system by redirecting to the Neon reset page.

    Thanks.

Viewing 14 posts - 1 through 14 (of 14 total)