APIs & Integrations

kronst
Teilnehmer/-in

Use workflow property in custom action

lösung

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 Akzeptierte Lösung
HFisher7
Lösung
Ratgeber/-in | Elite Partner
Ratgeber/-in | Elite Partner

Use workflow property in custom action

lösung

@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

Lösung in ursprünglichem Beitrag anzeigen

3 Antworten
HFisher7
Lösung
Ratgeber/-in | Elite Partner
Ratgeber/-in | Elite Partner

Use workflow property in custom action

lösung

@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
Teilnehmer/-in

Use workflow property in custom action

lösung

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/-in
Community-Manager/-in

Use workflow property in custom action

lösung

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


HubSpot’s AI-powered customer agent resolves up to 50% of customer queries instantly, with some customers reaching up to 90% resolution rates.
Learn More.


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