Best answer

Prevent Zap API Request Fail on http 204 return from Google Group Member Delete

  • 26 July 2023
  • 9 replies
  • 124 views

Userlevel 1

I have formatted an API Request step in Zapier to delete a member in a Google Group.

The Delete request works, but returns an error (Raw request failed.). I know that the request is returning an http response of 204 (success). There has to be a way to handle this without having to upgrade my account just to ignore failure messages.

Anyone solve for this or something similar?

icon

Best answer by Troy Tessalone 26 July 2023, 23:06

View original

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

9 replies

Userlevel 7
Badge +14

Hi @elizabethm42 

Good question.

Please post detailed screenshots with how your Zap steps are configured along with the encountered error to help give us more context, thanks.

Userlevel 1

@Troy Tessalone Sorry, should have done that from the start!

API Action Setup
Raw Request Failed error

 

Userlevel 7
Badge +14

@elizabethm42 

GContacts API endpoint to delete member: https://developers.google.com/admin-sdk/directory/reference/rest/v1/members/delete

 

Fixes

  • Remove the 2 Query String Parameters.
  • Instead, map those into the URL in place of {groupKey} and {memberKey}

 

 

Userlevel 1

@Troy Tessalone Thank you so much for taking a look at this and I’m sure you are correct, but when you say “map those into the URL in place of {groupKey} and {memberKey}” I’m not sure what you mean. I thought that is what the Query String Parameters were for. I am very much a beginner in dealing with both Zapier and the API interface.

Userlevel 7
Badge +14

@elizabethm42

Map these dynamic variables in place of the these static values in the URL:

{groupKey}

{memberKey}

 

 

 

groupKey

string

Identifies the group in the API request. The value can be the group's email address, group alias, or the unique group ID.

memberKey

string

Identifies the group member in the API request. A group member can be a user or another group. The value can be the member's (group or user) primary email address, alias, or unique ID.

Userlevel 7
Badge +14

@elizabethm42 

If you need help, consider hiring a Certified Zapier Expert: https://zapier.com/experts/automation-ace

Userlevel 7
Badge +14

@elizabethm42 

It should look similar to this.

 

Userlevel 1

@Troy Tessalone Thanks. Is there any documentation on how to create and use Dynamic values in Zapier? Is this going to require coding knowledge?

Userlevel 1

@Troy Tessalone Gotcha! Thanks so much, the pic above clarifies it completely, Thank you so much!