APIs & Integrations

kronst
Participant

Use workflow property in custom action

SOLVE

I'm trying to create a custom workflow action which requires a file as an input field. I know that it's possible to use a contact property of file type, for example. But in my case this file always needs to be the same for any workflow execution.

I found that I can create a workflow property of file type. And now I wonder if it's possible to access workflow property value somehow from the action?

If I'll create an input field definition like the following, it allows me to select only contact properties, but not from the workflow.

{
  "typeDefinition": {
    "name": "fileId",
    "type": "string",
    "fieldType": "file",
    "options": [],
    "optionsUrl": null,
    "referencedObjectType": null,
    "externalOptions": false,
    "externalOptionsReferenceType": null
  },
  "supportedValueTypes": [
    "OBJECT_PROPERTY"
  ],
  "isRequired": false,
  "automationFieldType": null
}

 

P.S. I don't want to add an input field where my customers need to write an ID of the file by their own.

0 Upvotes
1 Accepted solution
HFisher7
Solution
Guide | Elite Partner
Guide | Elite Partner

Use workflow property in custom action

SOLVE

@kronst - If I am understanding correctly, based on your saying "But in my case this file always needs to be the same for any workflow execution." instead of using a personalisation token pulling a value from a CRM property into the code can you not use the file URL in the cosed instead, so it is the same across all workflow enrollments? 


Hannah Fisher
CRM Platform Consultant @ Elite HubSpot Partner BabelQuest
Unlock the potential of HubSpot

Did my post help answer your query? Help the Community by marking it as a solution

View solution in original post

3 Replies 3
HFisher7
Solution
Guide | Elite Partner
Guide | Elite Partner

Use workflow property in custom action

SOLVE

@kronst - If I am understanding correctly, based on your saying "But in my case this file always needs to be the same for any workflow execution." instead of using a personalisation token pulling a value from a CRM property into the code can you not use the file URL in the cosed instead, so it is the same across all workflow enrollments? 


Hannah Fisher
CRM Platform Consultant @ Elite HubSpot Partner BabelQuest
Unlock the potential of HubSpot

Did my post help answer your query? Help the Community by marking it as a solution
kronst
Participant

Use workflow property in custom action

SOLVE

Hello, @HFisher7!

As a result I just want to create a custom action where user could select a file that will be used in an action execution. But I like the idea of approach when customer specifies the direct link to a file. 🤔 This could even reduce the complexity of execution implementation. I'll discuss this point with my team.

Thanks a lot for the reply, Hannah.

0 Upvotes
BérangèreL
Community Manager
Community Manager

Use workflow property in custom action

SOLVE

Hi @kronst,

Thank you for reaching out to the Community and for sharing the code with us!

I'd be happy to put you in touch wit our Top Experts for this: Hi @HFisher7, @miljkovicmisa and @ChristinaKay do you have suggestions to help @kronst, please?
 

Thank you very much and have a wonderful day!

Best,
Bérangère


Saviez-vous que la Communauté est disponible en Français ?
Rejoignez les discussions francophones en changeant votre langue dans les paramètres !

Did you know that the Community is available in other languages?
Join regional conversations by changing your language settings!


0 Upvotes