US English (US)
GB English (UK)

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Create ticket
English (US)
US English (US)
GB English (UK)
  • Home
  • Directory Synchronisation

Cannot manipulate targetValue in complex expression.

Written by Neil Langston

Updated at May 22nd, 2025

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Getting Started
  • FAQs
  • API Documentation
  • Integrations
  • Migration Agent
  • Directory Synchronisation
  • Remote DC agent
  • Remote Password Sync Agent
  • Install and Configure
  • Support
  • Complex Expressions
+ More

Table of Contents

You want to manipulate the target value when performing directory synchronisation and modifying attributes.

You want to manipulate the target value when performing directory synchronisation and modifying attributes.

Directory synchronisation in PowerSyncPro focusses on using source attribute values to determine what the target value should be. 

 

The resultant target value for an attribute can be calculated from the result of a complex expression or simple expression, or you can do a direct copy in the mapping on the sync profile, any existing target value cannot be manipulated (using methods/functions) within the code of the expression you have created. So you would not be able to use targetValue.split, or targetValue.replace for example. 

You can reference targetValue without any other code, logic or functions. 

targetValue

But you are not able to perform any of the following

targetValue.<function>
targetValue.Split
targetValue.Replace
"HR " + targetValue

 

You can use code and methods/functions on source attributes or sourceValue to determine what we write to the target attribute, for example you can perform these 

sourceValue.Split('@')[0] + "@mydomain.com"
sourceValue.Replace(".","") 
userPrincipalName.Split('@')[0] + "@mydomain.com"

 

As an example, If you want to use the targetValue if the source attribute Value is empty or is null you might use this complex expression.

 

complex expression manipulate target

Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • legacyExchangeDN and other mail attributes - implicit writes
  • "Is not null" and "is not empty" not working as expected.

Subscribe to Newsletter

Drop your email in the box below to sign up. We promise to keep our updates relevant and useful – and we’ll never share your details.

PowerSyncPro is the ultimate product for easing the pain and frustration during mergers, acquisitions, divestitures, and consolidations.

Terms & Conditions

  • FAQs
  • Privacy Policy
  • Cookies
  • Anti Slavery Notice

PowerSyncPro

  • Case Studies
  • Contact sales
  • Meet the Team
  • EULA

Get Connected

Room 73, Wrest House, Wrest Park, Silsoe, Bedford, England, MK45 4HR
info@powersyncpro.com

Twitter Youtube Linkedin

Knowledge Base Software powered by Helpjuice

Expand