Skip to main content
Answer

Failed to create a role : Class constructor AppError cannot be invoked without 'new'

  • March 10, 2024
  • 5 replies
  • 390 views

Hello

I have this message error. I looked over the forum to find help : Zapier has the permissions to manage webhooks, to send message, to manage roles …. i show you all my tasks.

 do you have any idea on this troubleshoot error ? Thanks in advance :)



 

Best answer by Troy Tessalone

@ZOO_Lea 

Make sure to reference the help article for understanding the expected value to pass for a dropdown field.

 

Help article to reference about mapping dynamic variable values to dropdown fields:

https://help.zapier.com/hc/en-us/articles/8496241696141-Add-custom-values-to-dropdown-menu-fields-in-Zaps

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

5 replies

Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • March 10, 2024

Hi @ZOO_Lea 

Help article to reference about mapping dynamic variable values to dropdown fields:

https://help.zapier.com/hc/en-us/articles/8496241696141-Add-custom-values-to-dropdown-menu-fields-in-Zaps

 


  • Author
  • New
  • March 10, 2024

Hi @Troy Tessalone ,

Thanks for your answer :)
I thought I used custom field, look at my 3rd screen ? isn’t it ok ? what am I doing wrong?


Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • Answer
  • March 10, 2024

@ZOO_Lea 

Make sure to reference the help article for understanding the expected value to pass for a dropdown field.

 

Help article to reference about mapping dynamic variable values to dropdown fields:

https://help.zapier.com/hc/en-us/articles/8496241696141-Add-custom-values-to-dropdown-menu-fields-in-Zaps


  • New
  • March 29, 2024

Hey Troy!

I’ve been facing the same issues as Lea :)


I use custom variables all the time and they work fine for me, but when it comes to Discord.. it does act weird.

Custom values outside of Discord work fine but when I use it with Discord it displays that exact error that Lea mentioned.


The best thing I can recommend is using the API feature through Webhooks by Zapier.

Create a Webhook step and follow the Discord documentation here:
https://discord.com/developers/docs/resources/guild#add-guild-member-role


It does take a bit to get that all figured out.. but it is possible!


SamB
Community Manager
Forum|alt.badge.img+11
  • Community Manager
  • April 9, 2024

Thank you so much for taking the time to share the alternative solution you found, @LukasNDA. It’s much appreciated! 🤗

For others that might not be so familiar with setting up webhooks and would prefer to use the existing Add Role Discord action, I wanted to clarify that when selecting a Custom value for the User field, it will expect to receive an ID number for the user, rather their name/username.

If you don’t know the ID for the user you can add a Find User (Discord) search action to find the user using their username, and obtain their ID number so you can then select that ID in the User field in the Add Role action. 

Hope that helps! 🙂