Question

Has anyone been successful in using Linkedin 'organizationalEntityShareStatistics' endpoint within Zapier ?


Userlevel 1

I’m trying to use the LinkedIn APi request (beta) to get the analytics of a specific post.

The request i’m using is GET https://api.linkedin.com/rest/organizationalEntityShareStatistics?q=organizationalEntity&organizationalEntity=urn:li:organization:{org_ID}&shares[0]=urn:li:share:{share_ID}

in Zapier API interface, i’ve encoded the url like that : ‘urn%3Ali%3Aorganization%3A{org_ID}’ (same logic for the share ID.

can’t find out why the request indicates  Invalid param.

ANy suggestion will be appreciated ;)

 

 

 


12 replies

Userlevel 7
Badge +14

Hi @djrlambert 

Can you link to the LinkedIn API endpoint documentation you used to configure the Zap step?

Userlevel 1

Hi @Troy Tessalone ! here’s the link https://learn.microsoft.com/en-us/linkedin/marketing/community-management/organizations/share-statistics?view=li-lms-2024-06&tabs=http

Userlevel 7
Badge +14

@djrlambert 

From the link you provided...

 

Userlevel 1

This warning is presented on all Linkedin API.

I’m using the versioned API , ie : https://api.linkedin.com/rest/
the unversioned looked like https://api.linkedin.com/v2/

below is a screen capture of the Zap Action Tab :

 

Userlevel 7
Badge +14

@djrlambert 

You should not need to encode the query string parameter values as those will get encoded when the request is sent.

 

Userlevel 1

Hi @Troy Tessalone 

I’ve retried my Zap with the following set-up : 
it’s still generating an error message.

Error message :

According to Troubleshooting Beta IA, the shares[0] parameter might be causing the issue.

 

Userlevel 7
Badge +14

@djrlambert 

Example from the API docs:

https://learn.microsoft.com/en-us/linkedin/marketing/community-management/organizations/share-statistics?view=li-lms-2024-06&tabs=curl

shares=List(urn:li:share:7132564752928563200,urn:li:share:7132402731377438720)

Instead of shares[0] use shares

Userlevel 1

it seems the parameter issue has been fixed, but running this ZAP now results in a different type of error : 

Zapier troubleshoot AI gives no detailed explanation.

Userlevel 7
Badge +14

@djrlambert 

For us to have context about the error, we would need to see updated screenshots with how the entire Zap step is configured.

Userlevel 1

thank you for your patience ! here are the screen captures

 

 

 

 

Userlevel 7
Badge +14

@djrlambert 

Did you try wrapping the right side values in List(URN) as indicated by the API docs?

 

 

shares = List(urn:li:share:7132564752928563200,urn:li:share:7132402731377438720)
Userlevel 1

WOW ! this is it !!!
wrapping the URN brought correct results.

@Troy Tessalone : I really appreciate your support on this issue. Thanks a lot : you made my day !

Reply