Post

1 follower Follow
0
Avatar

Pull or Create URL via API

I'm trying to make a graphic on our dashboard clickable. I would like to make the link open a webpage to Clarizen, using something similar to: https://app2.clarizen.com/Clarizen/Project/######### . I can't seem to find where to get the numbers that identify the project. I tried the entity ID, SYSID, External and Internal Ids.

Thanks!

Jeff

Marketing Mojo IT Answered

Please sign in to leave a comment.

2 comments

0
Avatar

Hi Jeff.

Try https://app2.clarizen.com/Clarizen/View/?type=<ApiTypeName>&id=<ExternalId>

e.g.: https://app2.clarizen.com/Clarizen/View/?type=Task&id=a5489f1b-9f45-439a-a6e9-bc920d410f67

I also recommend you explore _AppLoginMessage _which can return a temporary URL that can get you directly to the desired page in Clarizen (using your API user credentials) without having to login.

Check this out:

private string GetClarizenLink(string baseLink)

{

AppLoginMessage appLoginMsg = new AppLoginMessage();

AppLoginResult result = (AppLoginResult)(service.Execute(new BaseMessage[] { appLoginMsg })[0]);

 

if (result.Success)

return result.Url + "&targetUrl=" + System.Web.HttpUtility.UrlEncode(baseLink);

return null;

}

private void button4_Click(object sender, EventArgs e)

{

string baseUrl = "/Clarizen/view/?ID=08353b53c4e549c39bc8fccf72c3ab93&type=Task";

string fullUrl = GetClarizenLink(baseUrl);

if (fullUrl != null)

System.Diagnostics.Process.Start(fullUrl);

}

 

Hope this helps

Ophir

Ophir Kenig 0 votes
Comment actions Permalink
0
Avatar

Ophir,

 

Thanks, that was exactly what I needed! It works now!

 

Jeff

Marketing Mojo IT 0 votes
Comment actions Permalink