Not applicable

CSOM in Nintex Forms

Jump to solution

I'm new to Nintex forms and development. Does Nintex support the SharePoint 2013 CSOM? When I run this code in a O365 SharePoint 2013 Nintex form:

var siteCollection;

var ctx= new SP.ClientContext.get_current();

siteCollection=ctx.get_site();

ctx.load(siteCollection);

ctx.executeQueryAsync(success,failuer);

function success()

{

var url= siteCollection.get_url();

alert(url);

}

function failure()

{

alert(“Failuer!”);

}

I get this message from the webpage:

The app Nintex Forms for Office 365 is out of date. Please update the app.

Then this message appears:

A potentially dangerous Request.Path value was detected from the client (:).

If the problem persists, contact your support team with the following information:

Correlation ID:

Tenant ID:

Time (UTC): 2016-01-22 18:32:03

Can someone please answer the following questions:

  1. If I need to update the Office 365 app, how do I do it?
  2. If I update it will Nintex support CSOM?

Thanks, in advance.

Reply
8 Replies
christopheraucq
Automation Master
Automation Master

Re: CSOM in Nintex Forms

Jump to solution

Hi Mark,

Maybe this blog post can help you

I used

var web = clientContext.get_web();

Regards,

Christophe

View solution in original post

Reply
Not applicable

Re: CSOM in Nintex Forms

Jump to solution

Christophe:

Thank you very much. Your suggestion to use web was excellent as was the article you recommended. My CSOM now works correctly with in a Nintex form.

Reply
Not applicable

Re: CSOM in Nintex Forms

Jump to solution

Great! Thanks for selecting a correct answer! It's very helpful to the community.

Thanks!

Frank

Your community manager

0 Kudos
Reply
stefc
Nintex Newbie

Re: CSOM in Nintex Forms

Jump to solution

Where do you insert the code into the form?

0 Kudos
Reply
christopheraucq
Automation Master
Automation Master

Re: CSOM in Nintex Forms

Jump to solution

Hi Stefanie,

As written in the blog post, Nintex Form let's you add JavaScript in the Custom JavaScript section of the Form Settings

Regards,

Christophe

0 Kudos
Reply
stefc
Nintex Newbie

Re: CSOM in Nintex Forms

Jump to solution

Thank you, I tried that and did not get the desired results. I will start a new post on my issue

0 Kudos
Reply
stefc
Nintex Newbie

Re: CSOM in Nintex Forms

Jump to solution
0 Kudos
Reply
kchaluvadi
Workflow Veteran

Re: CSOM in Nintex Forms

Jump to solution

Is it CSOM or JSOM? SP.ClientContext, get_web() methods are part of SP JSOM model, not CSOM as per my knowledge.

0 Kudos
Reply