Quantcast
Channel: SharePoint 2013 - Using SharePoint Designer, InfoPath and Other Customizations forum
Viewing all 10278 articles
Browse latest View live

GetUserProfileByName not populating user info in infopath form in Form Based Authentication in Sharepoint 2013

$
0
0

Hi,

I am trying to auto populate the infopath form in a Form Based Authenticated SP 2013 site with current user info, but the GetUserProfileByName is not working properly. I tried various approaches, but nothing worked out for me. can anyone please help me out here.

Thanks,

Nikhil




How to update Lookup column (multi-value) in SPD 2013 workflow

$
0
0

Hello

I am trying to update multi-value lookup field in a test list, which contains only title and the lookup_field.

I successfully inserted new data in the lookup column using 2010 workflow as described here: http://social.technet.microsoft.com/forums/en-US/sharepointcustomizationprevious/thread/842281fe-9bc3-46f2-b669-21d4ac47bf89.

But when I tried 2013 workflow I got error:

BadRequest to http://portal13.test.local/sites/it-dep/_vti_bin/client.svc/web/lists/getbyid(guid'8f151f28-ebdf-4b3d-80ce-bd4a0de83e11')/Items(1) Correlation Id: 35b5404a-bfad-0c7f-b1b8-7f3e30cab9a5

ULS log shows errors:

OData Exception Reading Entity Body: Microsoft.Data.OData.ODataException: An unexpected 'PrimitiveValue' node was found when reading from the JSON reader. A 'StartObject' node was expected.

Original error: Microsoft.SharePoint.Client.InvalidClientQueryException: An unexpected 'PrimitiveValue' node was found when reading from the JSON reader. A 'StartObject' node was expected.

I am really appreciate any suggestion to find out why this happens.

Custom Navigation Menu Issue in Layout page

$
0
0

Hi all,

I have designed a custom Navigation Menu for English and Arabic. The Site is working fine but When I go to Site Setting or View all Site Content the Menu Distracts and I found it is not showing my Arabic Menu as well when I switch to Arabic View.
I think the problem is with the Layout page, what ever page or list opens in Layout page the problem occurs.

So Please Help me how to Solve this Issue.

Thanks in Advance.

How to change from address in send email with SP Designer?

$
0
0

Hi,

I created Workflow in SP Designer. I added action to sent email. But form address is workflow@noreply. How to change to this adress?

Customizing the Sharepoint drop down Search box

$
0
0
Hello all,

Can anyone tell me how to customize or change a look and feel of drop down which appears with search box.

I have changed the design of search box but I cannot edit the drop down. For example: I want to change the default drop down and replace it with drop down image. But it is not happening.

Please help me.

Thanks in advance.

Can you use SP Designer 2010 with SP 2013 standard?

$
0
0
Can you use SP Designer 2010 with SP 2013 standard? 

How to end a workflow

$
0
0

i have created a list in which there is a dated column and i have designed a workflow for that sepecific columns to shoot a email (-15,-10,-5) days prior as a reminder.

Now after i get an reminder email on -15 day the system should automatically update but its even shooting out for -10 & -5 which is confusing.

So it there any way where once they udpate that date column then workflow should start again depending on the date.

Copy entire site from one farm to another

$
0
0

I have two farms, both production. I have a sub-site in farm A where I have deployed multiple InfoPath forms and Multiple List workflows (SPD). I am now required to recreate this Sub-site in farm B. I tried to to do this via Site Template but having issues with different site collection features. Export/Import did a bit better as it copied all lists, forms and workflows but the workflows are not working because workflows are not associated anymore with any of the list. I tried to do a Backup/restore at a site collection level and that actually worked well but I do not need the entire site collection, just the sub-site.

I have about 10 InfoPath forms and 13 SPD workflows that needs to be copied as it is. Any advise/suggestion is appreciated.


Shiv Yadav(MSCA)


Can't open Websites with SPD 2013

$
0
0

Hallo,

i have a Problem with the SPD 2013. When I Click "Open Website", I get the Error Message:

Therequestcouldnotbecompletedbytheserver.

The Caches are all clean. And a new install had not helped.

What is the Problem?

regards

Brockyschano



Deploy Custom master page in Sharepoint 2013

$
0
0

Hi All

i have created a custom master page for Sharepoint 2013, but while trying to deploy its not getting copied in _catalogs/masterpage gallery

here is the module code i used

<?xml version="1.0" encoding="utf-8"?><Elements xmlns="http://schemas.microsoft.com/sharepoint/"><Module Name="MasterPage" Url="_catalogs/masterpage" List="116"><File  Url="CommonMaster.master" Path="MasterPage\CommonMaster.master" Type="GhostableInLibrary" IgnoreIfAlreadyExists="FALSE" ><Property Name="UIVersion" Value="15"></Property><Property Name="MasterPageDescription" Value="This is the master page to use for the new site." /><Property Name="ContentType" Value="$Resources:cmscore,contenttype_masterpage_name;" /></File></Module></Elements>

my feature is site collection level feature am i missing something? please help.Thanks in advance


Manoj Gangwar | Sharepoint 2010 MCPD | Sharepoint 2010 MCTS

InfoPath 2013 formatting rule on a button.

$
0
0

There is a drop down list containing some names and a text box which allows the user to add the ID related to the name chosen from the drop down list.

Then there is this submit button that allows the user to submit the form. I want to add the formatting rule where the button is only enabled if 

"The ID and the name are the same as they are in the data" e.g. John has ID 2. So if John writes his ID as 4, the button should stay disabled.

Thanks in advance

The workflow operation failed because the action requires the document to be checked out.

$
0
0
     
<form action="/Forums/en-US/search" id="forumsSearch" method="post">

Problem:

Cannot successfully copy one document from one library to another using the OOTB SPD 2010 Approval Workflow with minor changes.  The documentdoes copy over but the status is not “Approved”, it is “Draft” in the destination library.

</form>

The OOTB Approval Workflow executes but when the document reaches the destination library, it has a status of "Draft" even though it was approved in a task. 

Message;

 

Conditions:

Using SharePoint 2013 with OOTB SPD 2010 Approval Workflow with minor modifications.

Logic:

In order to start the Approval Workflow, the document has to be checked in. But when the workflow executes, it fails due to the fact the document is checked in.

Don’t understand why the workflow has the requirement that document be checked in then later fail because it is checked in.

The destination library must have documents that are checked in.

I tried several combinations of Actions (Check out item, Check In Item) in the SPD but to no avail.

There are similar posts in this site, but I would like to know what it would look like in SPD.  I am new to SharePoint.

How to update SP list programatically?

$
0
0

Hey guys 

I want to update a SP list after submitting the InfoPath form in MOSS 2013 environment. Here is my code

using Microsoft.Office.InfoPath;
using System;
using System.Xml;
using System.Xml.XPath;
using System.Configuration;
using System.Diagnostics;
using System.IO;
using System.Text.RegularExpressions;
using System.Web;
using System.Data.Entity;
using System.Threading;
using Microsoft.SharePoint;

namespace VideoEncoding
{
    public partial class FormCode
    {
        // Member variables are not supported in browser-enabled forms.
        // Instead, write and read these values from the FormState
        // dictionary using code such as the following:
        //
        // private object _memberVariable
        // {
        //     get
        //     {
        //         return FormState["_memberVariable"];
        //     }
        //     set
        //     {
        //         FormState["_memberVariable"] = value;
        //     }
        // }

        // NOTE: The following procedure is required by Microsoft InfoPath.
        // It can be modified using Microsoft InfoPath.





        public void InternalStartup()
        {
            EventManager.FormEvents.Submit += new SubmitEventHandler(FormEvents_Submit);

            ((ButtonEvent)EventManager.ControlEvents["CTRL5_5"]).Clicked += new ClickedEventHandler(CTRL5_5_Clicked);
        }

        public void FormEvents_Submit(object sender, SubmitEventArgs e)
        {
            // If the submit operation is successful, set
            //updateList();
            e.CancelableArgs.Cancel = false;

        }

        private string getFieldValue(string xPath)
        {

            XPathNavigator Nav = MainDataSource.CreateNavigator();
            XPathNavigator xnMyField = Nav.SelectSingleNode(xPath, NamespaceManager);

            if (xnMyField != null)
            {
                return xnMyField.Value;
            }
            else
            {
                return string.Empty;
            }
        }
        private void setFieldValue(string xPath, string value)
        {

            XPathNavigator Nav = this.MainDataSource.CreateNavigator();
            XPathNavigator xnMyField = Nav.SelectSingleNode(xPath, NamespaceManager);

            xnMyField.SetValue(value);
        }

        private void updateList()
        {
            try
            {
                using (SPSite sitex = new SPSite(SPContext.Current.Site.ID, SPContext.Current.Site.SystemAccount.UserToken))
                {
                    {
                        using (SPWeb webx = sitex.OpenWeb())
                        {
                            webx.AllowUnsafeUpdates = true;
                            SPList List = webx.Lists["Test List"];
                            SPListItem myItem = List.AddItem();
                            myItem["Judge Name"] = getFieldValue("/my:myFields/my:DdName");
                            myItem["Judge's ID"] = getFieldValue("/my:myFields/my:EnterID");
                            myItem["Cop Name"] = getFieldValue("/my:myFields/my:CopName");
                            myItem["Video Attachment"] = getFieldValue("/my:myFields/my:AttachFile");

                            myItem.Update();
                            List.Update();
                            webx.Update();
                            webx.AllowUnsafeUpdates = false;
                        }

                    }
                }
            }
            catch (Exception e)
            {
                Console.WriteLine("THe Exception is" , e);
            }
      }




        public void CTRL5_5_Clicked(object sender, ClickedEventArgs e)
        {
            // Write your code here.
            updateList();
            Submit();
        }
    }





}

But when i try to submit the form through the button i get an exception that says "IO Exception" on 

updateList(); in CTRL5_5_Clicked method.

Any Ideas why this is happening?

How to get logged in user display name in InfoPath form when InfoPath form is published to SharePoint online.

$
0
0

How to get logged in user display name in InfoPath form when InfoPath form is published to SharePoint online(Cloud)?

Tried following:

1. In the InfoPath form, I tried using userName() function in the value of the text box by clicking on fx.

   When I login Sharepoint Online and open InfoPath form,

   displays like this: i:0#.f|membership|reddyn1@neovialogistics.net in the text box.

For your Information:

When I go to Office 365 Admin page, there I find "users and groups" link, when clicked on the link, it shows "DISPLAY NAME" and "USER NAME" columns.

It shows mine "Narayana Reddy" under "DISPLAY NAME" column andreddyn1@neovialogistcs.net" under "User Name" column.

 

2. I tried to use "GetUserProfileByUserName" web service.

   a. For Person Group Picker control, I placed "userName()" function value for "AccountId" field for this

      control.

   b. I gave above "AccountId" as input parameter value to GetUserProfileByUserName" web service.

   c. In the button actions I am calling "GetUserProfileByUserName" web service.

   d. When I login SharePoint Online, open InfoPath form and clikc on button,

        it throws me an error: "An error occured querying a data source"

Seeking Help:

I may be missing something. Appreciate any one's help regarding this.

Thanks in advance!


Narayana Reddy G

How to get a Space between semicolon when returning "Display Names, Semicolon Delimited" into a field with a SharePoint Workflow

$
0
0

I am trying to copy names from the hyperlinked names field into a plain text field so users can extract the data.  I am using a SharePoint workflow to update this plain text field.  Problem is if there is more than one name in the hyperlinked field then it seperates them with a semicolon but there is no space between them, it ends up looking like this "UserName;UserName".  I want to return "UserName; UserName".  Is there a way to make that happen?

PS - We do not have Infopath available for this.


How to set a Workflow Task Duration in SharePoint Designer 2013?

$
0
0

I'm using SPD2013 to create an approval workflow. I start with a "Start Task Process" action. The problem is I don't have an explicit place to set Duration like I recall using in SP2010.

I can only set a due date of today or an explicit date. I assume that I need to use the lookups and somehow apply x number of days to created date or today, but can't figure out how/where to formulate that. 

Any help would be greatly appreciated.

how to clear value infopath by action rule

$
0
0
Hi, I am new to infopath. I am trying to perfom an action role. When user completes field No.1, the value in field No.2 should be cleared.  Just set the value = "" ?

Workflow in SharePoint 2013: Update item in list

$
0
0

I have a task list where anyone can post a suggestion for a blog. There is a string field for the status.

I have a library where the author can upload the blog article when ready to send for review. Uploading the document triggers the workflow to start. This document is reviewed twice and when the author is satisfied it will go for translation and then for web publication.

All of this is worked out in the workflow except for one thing: I would like to update the task list at each stage of the process to the current status. Since it can all be done programmatically, I don't need to use a "choice" field. The string field would be just fine. One of the things I saw in my research is that "choice" fields won't update.

I have put a lookup field in the blog article library to correspond with the title in the task list to create a relationship.

First of all, is it possible to do to update a task from a document library, or am I just spitting in the wind? If so, why doesn't it work?

Unable to publish from Designer 2013 to SharePoint Online site

$
0
0

I get the following workflow error in Designer 2013 when compiling a workflow to be published to a SharePoint Online site.

Microsoft.Workflow.Client.ActivityValidationException: Workflow XAML failed validation due to the following errors: Cannot set unknown member 'WaitForItemEvent.RelatedItemIntId'. HTTP headers received from the server - ActivityId: c0a0e19c-adee-4f31-bd45-33f0f3ac07e0. NodeId: . Scope: . Client ActivityId : d316239c-7bbe-80c5-0a53-1613c0ffdca3. ---> System.Net.WebException: The remote server returned an error: (400) Bad Request. at Microsoft.Workflow.Common.AsyncResult.End[TAsyncResult](IAsyn

Through researching the error, I found that the solution can be fixed if you configure the SharePoint host to use workflow service using Register-SPWorkflowService.

However, this isn't a solution because I don't have access to the hosting server because is the SharePoint site is using SharePoint Online! 

I really hope, you can help me!

Thanks,

Crystal

spcolor theming not rendering

$
0
0

Hi, I'm a student web developer for University of Wisconsin at Eau Claire, and I've had an issue with my custom theme.

I've created a custom composed look. The links are all functional, and the composed look appears in the composed look gallery. My color scheme is automatically selected when I "Change the Look." My preview looks great, and I select "Try it out." However, the preview of my site in the new theme appears to be using one of the OOTB color schemes (albeit under my custom CSS branding). Sure enough, when I say "Yes, keep it" and am redirected to my home page, the color scheme is not the one I have specified for my composed look. ie hyperlink color, site header color etc are incorrect. I've made sure the .spcolor file is checked in and current, but this keeps happening.

Does anyone have ideas about this?

Viewing all 10278 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>