Provides tools for converting date and time formats, for obtaining information from user names, for modifying access to sites, and for various other tasks in managing deployments of Microsoft SharePoint Foundation.

learn more… | top users | synonyms

0
votes
0answers
54 views

SPUtility not working on Custom edit Form

I have created new Custom Edit Form for one of my List and trying to set Value using SPUtility.js. I am constantly getting error Unable to get a SPField named Title(Field Name) But same piece ...
1
vote
1answer
41 views

SPUtility not working correctly

I just started using this tool, so I tested SetValue in order to familiarize myself with it. It seemed to only work whenever I hit the "Ok" button to the Content Editor web part of the new/edit form. ...
0
votes
1answer
38 views

Redirect in UserControl

I have an issue to redirect page on the page load of my user control For this i use string sRedirectionURL = "/mylist/forms/allitems.aspx"; SPUtility.Redirect(sRedirectionURL + Request.Url.Query, ...
0
votes
0answers
57 views

how to get value of a person or group column with SPUtility

Inside SharePoint 2013, i'm trying to fill a single text column with the content of a person or group column when creating a new item in the list. The code i'm using inside the list is: <script ...
5
votes
2answers
483 views

Fail to send email by utility class

I have utility class to send email. currently i am facing error :- a recipient must be specified EmailProperties emailp = new EmailProperties(); emailp.To = new string[] { ...
0
votes
1answer
128 views

Sharepoint: inline image in email

I am unable to add inline images in an email. The mail just show a square having a red cross inside it. Is there a way to add inline images to email which needs to be sent from SharePoint. Updated: ...
0
votes
0answers
58 views

Issue with SPUtility and prototype.js files in editform.aspx

I am facing issues with SPUtility and prototype.js files in my editform.aspx in my SP 2010 list form.If i mention like below, my entire custom CSS was not working and because of these 2 js files,I ...
1
vote
1answer
241 views

SPUtility.SendEmail returns false for external users (different domain)

I have used SPUtility.SendEmail to send email to users programmatically and it works. However if the user's email is different than the outgoing email domain it returns false. How do I make it work ...
0
votes
1answer
278 views

Validate Choice Field with multiselection Checkboxes on PreSaveAction function Call

My SharePoint 2010 list has a choice column that with checkboxes and allows multiple selections. For all these checkbox field choices there is a corresponding textbox fields are created. This textbox ...
0
votes
1answer
77 views

Validation of multiple textbox, number fields using JavaScript

I am doing the JavaScript validation of SP 2010 list mynewcustomform.aspx page using the code written in content editor web part. Fields are: textbox1, textbox2, textbox3. var valoftxt1 = ...
0
votes
1answer
273 views

How to set a value in a Choice Field based on the text box change SP 2010 in list newform.aspx

I am having few fields like single line of text, choice field, rich text on my customnewform.aspx of my SP 2010 SPList. Now if I enter a value say USA on the text box, I need to set the ...
0
votes
1answer
50 views

Getting Content Type while adding a New Item

I have a list that is using several Content Types, and have the requirement that the Title be generated based on the content of other fields. I've used sputility.js to achieve most of this just fine, ...
0
votes
1answer
1k views

SharePoint 2013 redirect on save or cancel jquery

I've been battling to get this work for the last day or so and its driving me up the wall. Firstly I'm using the 'SPUtility' jQuery scripts which are great to showing or hiding fields depending on ...
2
votes
1answer
81 views

Run Inline ASP code on a Published Master Page

I'd like to use the SPUtility.MakeBrowserCacheSafeLayoutsUrl method in my published master page (used in a publishing site) in order to force SharePoint to stop caching my JavaScript and CSS files. ...
2
votes
2answers
2k views

Sending richText format in email (currently using SPUtility.sendemail)

I have a list field that contains hyperlinks and richtextformat. To send the email I am using: Spweb web = spcontext.current.web; StringDictionary headers = new StringDictionary(); ...
0
votes
1answer
177 views

Why is SPHttpUtility.HtmlEncode preferred to HttpUtility.HtmlEncode?

The SharePoint Code Analysis Framework rule SPC020220: Do not call 'HttpUtility.HtmlEncode' states that: The assembly should not call HttpUtility.HtmlEncode(string) to encode strings [and that] ...
3
votes
3answers
6k views

Get User Profile from email address

I was using SPUtility.ResolvePrincipal to resolve the email address but it only seems to work if the user is already in the User Information List. Is there any way I can resolve users based on email ...
13
votes
3answers
4k views

Client Object Model equivalent of SPUtility.SendEmail in SharePoint 2010

I am trying to send an email after an action occurs in Silverlight WebPart I am designing. Is there a built-in class in the Client Object Model that can handle this, or will I have to build a ...
0
votes
1answer
33 views

How to get GetLocalizedstring for announcement list

I am trying to add xsltlistviewwebpart and it has to be from announcement list. How to write this line? string str = "$Resources:??";//How to get announcement list reference here? public static ...
0
votes
1answer
315 views

SPUtility.SendEmail doesn't exist

I'm trying to send an email with sharepoint's SPUtility.SendEmail() method, but according to Visual studio it doesn't exist. I have using Microsoft.Sharepoint and .Utilities included, but still ...
0
votes
1answer
407 views

SPUtility.SendEmail() always returns false

I have one application which will create task form for each level based on the prior level approval. While creating each tasks I have to send the email to the users who all are involved in the task. ...
2
votes
1answer
3k views

How to send email with attachments in SharePoint 2013?

I am using SharePoint 2013 to implement a custom workflow application. During one of the state transitions, I want to send an email to people who are part of a certain group with a zip file of ...
7
votes
1answer
4k views

SPUtility.SendEmail() with attachment (.ics files)

We send the email from SharePoint by using SPUtility.SendEmail() method. But, now I need to attach multiple .ics file (Outlook meeting requests) with this email. I have only one option, I have to ...
2
votes
1answer
2k views

SPUtility.GetPrincipalsInGroup not working with every AD Group

I'm currently having an issue with SPUtility.GetPrincipalsInGroup, I've search here and on Google but I haven't found any explication for this behavior. I use the method to list Users that are part or ...
3
votes
1answer
827 views

SPUtility.SendEmail returns false when invoked in asmx

I have a function inside an asmx page which needs to send an email, but SPUtility.SendEmail returns false. SPContext.Current is null, so I create an SPSite object with the site url, and from that, I ...
1
vote
1answer
2k views

SPUtility.SendEmail works but will not send links

In SP 2010, I'm using SPUtility.SendEmail and it is working fine except for sending links. In the body string argument, I input "<a href=\"http://www.google.com\">Click me</a>" It ...
0
votes
1answer
594 views

The name 'SPUtility' does not exist in the current context

I am using the following code in my page layout file but I am getting error. CODE <%= SPUtility.GetLocalizedString("$Resources:NewsHeading", "myresourcefile", ...
3
votes
2answers
4k views

SPUtility Sending Email with display name

I'm writing a timer job which once complete it sends out an email from noreply@company.com, when it arrives in outlook it shows that address as the from person. Is there a way to get it to display a ...
0
votes
1answer
818 views

programmatically get IDs of list from urls

Is it possible to retrieve the ID of a list or library with a url? For example, http://MyPortal/MySubsite/MyDocuments/Forms/AllItems.aspx If so, please provide me with some sample code. Many ...
1
vote
1answer
2k views

Not getting the resource of specific variation

Actually this is a double question, 1 I'm trying to get the right variation from the following code: SPUtility.GetLocalizedString("$Resources:MyDefaultResourceFileName,MyWantedValueKey", ...
1
vote
2answers
664 views

Unable to load 'onetnative.dll': The specified module could not be found

This question arises as a result of this question, but I thought I would split it out into its own. Anything using SPUtility.GetGenericSetupPath() is returning null, e.g. ...