cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jsteele64289
Regular Visitor

Invoke Web Service - Zendesk

Hello All!

 

I'm working on a project right now that requires me to upload some files to Zendesk via API, and then attach them to a ticket later on. I can create tickets and add comments to them, with no problem, but I'm struggling to get files to upload with the method Zendesk suggests. I am starting to wonder if this action in Power Automate Desktop is not capable of doing what I need it to do, and I'm curious if others have seen the same, or if anyone has suggestions.

 

For reference, the attachment procedure is outlined on this page: https://developer.zendesk.com/documentation/ticketing/using-the-zendesk-api/adding-ticket-attachment...

 

They say there's the option to do it from the command line, but I am not able to get this command to work in either PowerShell or CMD:

 

curl "[URL of Attachment]" \ --data-binary @img_0603.png \ -H "Content-Type: application/binary" \ -v -u jdoe@example.com/token:xpfRUSj51oGQta26nhRyaLaIBdhf \ -X POST

 

In PowerShell, the --data-binary section doesn't work and outputs the error:

 

"+ --data-binary @?img_0603.png \
+ ~
Missing expression after unary operator '--'.

 

Any help or suggestions would be appreciated, thank you!

 

 

6 REPLIES 6
VJR
Multi Super User
Multi Super User

Hi @jsteele64289 

 

Something appears wrong with the parameters and the syntax.

 

You have pasted the command from the zendesk documentation so it is not clear what is going wrong with the actual command that you are using via PAD.

Are you able to print the command you are submitting via cmd and display it into a message box and see what's wrong?

 

Also I hope you have taken care of other things like the one mentioned on the documentation.

If the file name contains spaces or other characters that might confuse cURL, enclose the name in quotes. If the file name doesn't have a file extension, make sure to include one in the cURL command

jsteele64289
Regular Visitor

Hey there,

 

Thanks for your response. I do believe I took care of the quotes around items with spaces, and I did include the extension. The code I used in PowerShell was the same as what I pasted, so if there is an issue with syntax, please point it out to me. I got rid of the PowerShell and CMD actions, as they continually gave the error I pointed out in my original post, no matter what I did.

 

I will paste the code I used in Invoke Web Service below:

 

Invoke Web Service:

 

jsteele64289_0-1646834557739.pngjsteele64289_1-1646834570681.png

 

 

 

 

 

 

jsteele64289
Regular Visitor

Also, for what it's worth, the above is the latest in a long series of revisions, and is not indicative of what I would normally try in that action.

 

I have attempted to use the cURL command in its entirety, in the Invoke Web Service action. I have attempted to enclose the filepath in <> "<>" " ", and I've attempted to remove extra white space within the cURL command, all to no avail so far. 

 

Finally, I think it is worth pointing out that in all cases, a file gets uploaded to Zendesk, but the contents of said file are always a copy of whatever text I have submitted in the body of the API request. For instance, Zendesk believes a PDF has been uploaded, but when opening the PDF in notepad, the text is simply the body of the request, and the file will not open in a PDF viewer.

Okay, its hard to tell. Hope you have tried at first in Postman and it works there. Then the same values/parameters can be passed via PAD. Also this will tell whether its an issue in calling the web service or in PAD or in the parameters.

jsteele64289
Regular Visitor

Hey there,

 

Yes, I tried and succeeded in Postman, but also found that PAD was not capable of sending the upload request in the Invoke Web Service action in the same way as Postman can.

 

This is now being achieved with calling a Python script from PowerShell, outputting the tokens from the uploads, and finally feeding those into the PAD action that creates the ticket and adds a comment with the attachment.

 

Let me know if knowing the code itself would be helpful at all, and I can try to post it here!

Glad to know you got to work it out in another way.

Yes you can post it here so that anyone landing on this thread having the same issue can utilise your solution.

 

Also if you think something needs to be fixed or is a new idea in "Invoke Web Service" then you can post your situation for the betterment of the tool.

Power Automate Ideas 

Found a Bug 

Helpful resources

Announcements

Community will be READ ONLY July 16th, 5p PDT -July 22nd

Dear Community Members,   We'd like to let you know of an upcoming change to the community platform: starting July 16th, the platform will transition to a READ ONLY mode until July 22nd.   During this period, members will not be able to Kudo, Comment, or Reply to any posts.   On July 22nd, please be on the lookout for a message sent to the email address registered on your community profile. This email is crucial as it will contain your unique code and link to register for the new platform encompassing all of the communities.   What to Expect in the New Community: A more unified experience where all products, including Power Apps, Power Automate, Copilot Studio, and Power Pages, will be accessible from one community.Community Blogs that you can syndicate and link to for automatic updates. We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead!

Summer of Solutions | Week 4 Results | Winners will be posted on July 24th

We are excited to announce the Summer of Solutions Challenge!    This challenge is kicking off on Monday, June 17th and will run for (4) weeks.  The challenge is open to all Power Platform (Power Apps, Power Automate, Copilot Studio & Power Pages) community members. We invite you to participate in a quest to provide solutions to as many questions as you can. Answers can be provided in all the communities.    Entry Period: This Challenge will consist of four weekly Entry Periods as follows (each an “Entry Period”)   - 12:00 a.m. PT on June 17, 2024 – 11:59 p.m. PT on June 23, 2024 - 12:00 a.m. PT on June 24, 2024 – 11:59 p.m. PT on June 30, 2024 - 12:00 a.m. PT on July 1, 2024 – 11:59 p.m. PT on July 7, 2024 - 12:00 a.m. PT on July 8, 2024 – 11:59 p.m. PT on July 14, 2024   Entries will be eligible for the Entry Period in which they are received and will not carryover to subsequent weekly entry periods.  You must enter into each weekly Entry Period separately.   How to Enter: We invite you to participate in a quest to provide "Accepted Solutions" to as many questions as you can. Answers can be provided in all the communities. Users must provide a solution which can be an “Accepted Solution” in the Forums in all of the communities and there are no limits to the number of “Accepted Solutions” that a member can provide for entries in this challenge, but each entry must be substantially unique and different.    Winner Selection and Prizes: At the end of each week, we will list the top ten (10) Community users which will consist of: 5 Community Members & 5 Super Users and they will advance to the final drawing. We will post each week in the News & Announcements the top 10 Solution providers.  At the end of the challenge, we will add all of the top 10 weekly names and enter them into a random drawing.  Then we will randomly select ten (10) winners (5 Community Members & 5 Super Users) from among all eligible entrants received across all weekly Entry Periods to receive the prize listed below. If a winner declines, we will draw again at random for the next winner.  A user will only be able to win once overall. If they are drawn multiple times, another user will be drawn at random.  Individuals will be contacted before the announcement with the opportunity to claim or deny the prize.  Once all of the winners have been notified, we will post in the News & Announcements of each community with the list of winners.   Each winner will receive one (1) Pass to the Power Platform Conference in Las Vegas, Sep. 18-20, 2024 ($1800 value). NOTE: Prize is for conference attendance only and any other costs such as airfare, lodging, transportation, and food are the sole responsibility of the winner. Tickets are not transferable to any other party or to next year’s event.   ** PLEASE SEE THE ATTACHED RULES for this CHALLENGE**   Week 1 Results: Congratulations to the Week 1 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge.   Community MembersNumber SolutionsSuper UsersNumber Solutions Deenuji 9 @NathanAlvares24  17 @Anil_g  7 @ManishSolanki  13 @eetuRobo  5 @David_MA  10 @VishnuReddy1997  5 @SpongYe  9JhonatanOB19932 (tie) @Nived_Nambiar  8 @maltie  2 (tie)   @PA-Noob  2 (tie)   @LukeMcG  2 (tie)   @tgut03  2 (tie)       Week 2 Results: Congratulations to the Week 2 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 2: Community MembersSolutionsSuper UsersSolutionsPower Automate  @Deenuji  12@ManishSolanki 19 @Anil_g  10 @NathanAlvares24  17 @VishnuReddy1997  6 @Expiscornovus  10 @Tjan  5 @Nived_Nambiar  10 @eetuRobo  3 @SudeepGhatakNZ 8     Week 3 Results: Congratulations to the Week 3 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 3:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji32ManishSolanki55VishnuReddy199724NathanAlvares2444Anil_g22SudeepGhatakNZ40eetuRobo18Nived_Nambiar28Tjan8David_MA22   Week 4 Results: Congratulations to the Week 4 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 4:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji11FLMike31Sayan11ManishSolanki16VishnuReddy199710creativeopinion14Akshansh-Sharma3SudeepGhatakNZ7claudiovc2CFernandes5 misc2Nived_Nambiar5 Usernametwice232rzaneti5 eetuRobo2   Anil_g2   SharonS2  

Check Out | 2024 Release Wave 2 Plans for Microsoft Dynamics 365 and Microsoft Power Platform

On July 16, 2024, we published the 2024 release wave 2 plans for Microsoft Dynamics 365 and Microsoft Power Platform. These plans are a compilation of the new capabilities planned to be released between October 2024 to March 2025. This release introduces a wealth of new features designed to enhance customer understanding and improve overall user experience, showcasing our dedication to driving digital transformation for our customers and partners.    The upcoming wave is centered around utilizing advanced AI and Microsoft Copilot technologies to enhance user productivity and streamline operations across diverse business applications. These enhancements include intelligent automation, AI-powered insights, and immersive user experiences that are designed to break down barriers between data, insights, and individuals. Watch a summary of the release highlights.    Discover the latest features that empower organizations to operate more efficiently and adaptively. From AI-driven sales insights and customer service enhancements to predictive analytics in supply chain management and autonomous financial processes, the new capabilities enable businesses to proactively address challenges and capitalize on opportunities.    

Updates to Transitions in the Power Platform Communities

We're embarking on a journey to enhance your experience by transitioning to a new community platform. Our team has been diligently working to create a fresh community site, leveraging the very Dynamics 365 and Power Platform tools our community advocates for.  We started this journey with transitioning Copilot Studio forums and blogs in June. The move marks the beginning of a new chapter, and we're eager for you to be a part of it. The rest of the Power Platform product sites will be moving over this summer.   Stay tuned for more updates as we get closer to the launch. We can't wait to welcome you to our new community space, designed with you in mind. Let's connect, learn, and grow together.   Here's to new beginnings and endless possibilities!   If you have any questions, observations or concerns throughout this process please go to https://aka.ms/PPCommSupport.   To stay up to date on the latest details of this migration and other important Community updates subscribe to our News and Announcements forums: Copilot Studio, Power Apps, Power Automate, Power Pages

Users online (509)