How to concatenate a property?

Hello ,

I would like to change my SEARCH RESULT :

Actually I have in my search by Company only NAME of my companies

I need to see in my search by Company NAME + CODE of my companies .

I created a script in a Workflow, but I don’t have NAME + CODE , why ?

exports.main = (event, callback) => {
const enterprise_nm = event.inputFields[‘name’];
const enterprise_cd = event.inputFields[‘code’];

//Concatenate

const completeEnterprise = `${enterprise_nm} - ${enterprise_cd}`;

//input in my property NAME :
event.inputFields[‘name’] = completeEntreprise;
callback({
outputFields: {
name: completeEntreprise,
},
});
};

Hi @VPEDROZO,

You don’t even necessarily need code for this. You coul achieve this with a simple ‘Set property value’ action:

Best regards!

Thank you very much,

For me it is not possible to add "AND"so I have :

And I don’t have in my search NAME + CODE (not yet)

Do you have an idee ?

Thank you

Hi @VPEDROZO,

Could you specify what exactly you’re referring to here?


@VPEDROZO wrote:

For me it is not possible to add "AND"so I have


Your workflow looks like mine, seems to be all good.

The ‘Company name and code concatenated’ is a custom property I created for demonstration. You can save the new value into any existing property or you can also create a new custom property by following these steps: Create and edit properties

Best regards

Hey,

In your workflow, we have : company name AND code concatenated me, I don’t have an option to add ET / OR I have just company name

Thank you !!

Hi @VPEDROZO,

“Company name and code concatenated” is one, new, combined property. It’s not two properties. I could’ve also named this “Concatenated result”, it’s just the label of the property.

Best regards!

I understood now

Thank you very much for your help !!!

Have a nice day Karsten