How to delete a custom columns from a content-type in Sharepoint Client object model
I have a windows interface where I create a content-type and then create a column and adds that column to the content-type.
//availableCT is my content-type where the column is present.
//get all available fields within this content-type
FieldCollection fieldColl = availableCT.Fields;
clientContext.Load(fieldColl);
clientContext.ExecuteQuery();
foreach (Field field in fieldColl)
//columnFromList is the column that is to be deleted
if (field.InternalName.Equals(columnFromList))
field.DeleteObject();
clientContext.ExecuteQuery(); // this throws an exception
// Additional information: Site columns which are included in content types or on lists cannot be deleted. Please remove all instances of this site column prior to deleting it.
hi,
you can use the below code to delete it
using (ClientContext sourceContext = new ClientContext(cmdSpoSite))
Web web = sourceContext.Web;
sourceContext.Load(web);
sourceContext.Load(web.AvailableContentTypes, type => type.Include(c => c.FieldLinks, c => c.Name));
sourceContext.ExecuteQuery();
List<ContentType> ExistingContentType = web.AvailableContentTypes.ToList();
IEnumerable<ContentType> contentTypesList = ExistingContentType.Where(ct => ct.Name == "<ContentTypeName>");
ContentType ctype = contentTypesList.ElementAt(0);
IQueryable<FieldLink> flinks = ctype.FieldLinks.Where(f => f.Name == "<FiledName");
foreach (FieldLink flink in flinks)
flink.DeleteObject();
ctype.Update(true);
sourceContext.ExecuteQuery();
The difference being in your code and above code is you are removeing fileds which is eventually is deleting site column but a site column cannot be deleted if is alreday being used. So you need to deled the FieldLink in content type taht way column is removed
from content type but not from site column.
Now if you want to delete site column you can use your code to deleted Field.
Whenever you see a reply and if you think is helpful,Vote As Helpful! And whenever you see a reply being an answer to the question of the thread, click Mark As Answer
Similar Messages
-
How to get all previous versions page contents and other field values of a publishing page using SharePoint Client Object Model 2010?
Thanks,
OsmitaHi Osmita,
Greetings.
Here are the links that helps you. It has code attached to it.
http://social.technet.microsoft.com/Forums/sharepoint/en-US/a0d2ab40-99ba-4368-8505-1dc559ef6469/get-content-of-previous-version-of-page-sharepoint-2010?forum=sharepointgeneralprevious
http://social.technet.microsoft.com/Forums/sharepoint/en-US/faaf419f-997e-4150-9911-48cc375c3b46/how-to-get-previous-published-versions-of-publishing-pages-in-sharepoint-2010?forum=sharepointdevelopmentprevious
Please remember to click 'Mark as Answer' on the answer if it helps you -
Through SharePoint Client Object model, how to make color coded events on Sharepoint Calendar
Hi,
Through SharePoint Client Object model, how to make color coded events on Sharepoint Calendar.
Plese share your knowledge.
Regards
TharakHi,
According to your post, my understanding is that you wanted to make a color events Calendar.
We can achieve it using the OOB method by creating the Calendars Overlay.
http://summit7systems.com/color-code-calendar-events-in-sharepoint/
You can also use the JavaScript to achieve it.
http://spsawyer.wordpress.com/2013/07/18/sharepoint-color-calendar/
http://www.planetwilson.co.uk/sharepoint-2013-colour-calendar-v2/
more reference:
http://usermanagedsolutions.com/SharePoint-User-Toolkit/Pages/Color-Coding-Calendar-List.aspx
http://blog.pathtosharepoint.com/2010/04/06/tutorial-add-color-coding-to-your-sharepoint-2007-calendar-in-15-minutes/#comment-7231
Thanks & Regards,
Jason
Jason Guo
TechNet Community Support -
Missing Columns from List Content Type
Hi,
I'm having some strange problems with one of my site collections, I have site content types with a few columns in it and I'm using them in 3 different libraries.
However recently something happened and it seems the list content types in one of the libraries have stopped using some of the columns set out in the site content type (according to library settings). The columns still show as part of the list (and the metadata
is still in there), when I've tried adding them back to the list content types, I do not see them in the list columns group, only in their original column group. If I try to add them to the list from their original group I get the errors similar to the following:
11.14.2014 13:16:52.85 w3wp.exe (0x1B84)
0x0770 SharePoint Foundation
General 8e2s
Medium Unknown SPRequest error occurred. More information: 0x8007054f
fd09cc9c-cf7b-1059-3bcb-0e44d3bf3743
11.14.2014 13:16:52.85 w3wp.exe (0x1B84)
0x0770 SharePoint Foundation
General aix9j
High SPRequest.AddField: UserPrincipalName=, AppPrincipalName= ,bstrUrl=http://servername/sitecollection ,bstrListName={7F184ACA-48C3-4728-AF42-A12CB55941B4} ,bstrSchemaXml=<Field Type="Lookup" DisplayName="DocumentOwner"
Required="FALSE" EnforceUniqueValues="FALSE" List="{57d71ec0-a996-4977-abf7-4cd4e0cc105c}" WebId="53a31862-077a-4031-8aad-7f2a43e33a46" ShowField="Title" UnlimitedLengthInDocumentLibrary="FALSE" Group="_QMS"
ID="{ca4bc17d-bb96-4aee-bb96-e645c939a013}" ,grfAdd=18
fd09cc9c-cf7b-1059-3bcb-0e44d3bf3743
11.14.2014 13:16:52.85 w3wp.exe (0x1B84)
0x0770 SharePoint Foundation
General ai1wu
Medium System.Runtime.InteropServices.COMException: An internal error occurred. (Exception from HRESULT: 0x8007054F), StackTrace: at Microsoft.SharePoint.SPFieldCollection.AddFieldAsXmlInternal(String
schemaXml, Boolean addToDefaultView, SPAddFieldOptions op, Boolean isMigration, Boolean fResetCTCol) at Microsoft.SharePoint.ApplicationPages.AddFieldToContentTypePage.AddFieldToList(SPField fldSrc) at Microsoft.SharePoint.ApplicationPages.AddFieldToContentTypePage.UpdateList()
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) at System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error) at System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext
context, AsyncCallback cb) at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer,
IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags) at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags) at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr
pHandler, RequestNotificationStatus& notificationStatus) at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus) at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr
rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags) at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
fd09cc9c-cf7b-1059-3bcb-0e44d3bf3743
11.14.2014 13:16:52.85 w3wp.exe (0x1B84)
0x0770 SharePoint Foundation
General 8nca
Medium Application error when access /_layouts/15/fldpick.aspx, Error=An internal error occurred. (Exception from HRESULT: 0x8007054F) at Microsoft.SharePoint.Library.SPRequestInternalClass.AddField(String
bstrUrl, String bstrListName, String bstrSchemaXml, Int32 grfAdd) at Microsoft.SharePoint.Library.SPRequest.AddField(String bstrUrl, String bstrListName, String bstrSchemaXml, Int32 grfAdd)
fd09cc9c-cf7b-1059-3bcb-0e44d3bf3743
11.14.2014 13:16:52.85 w3wp.exe (0x1B84)
0x0770 SharePoint Foundation
Runtime tkau
Unexpected System.Runtime.InteropServices.COMException: An internal error occurred. (Exception from HRESULT: 0x8007054F) at Microsoft.SharePoint.Library.SPRequestInternalClass.AddField(String bstrUrl,
String bstrListName, String bstrSchemaXml, Int32 grfAdd) at Microsoft.SharePoint.Library.SPRequest.AddField(String bstrUrl, String bstrListName, String bstrSchemaXml, Int32 grfAdd)
fd09cc9c-cf7b-1059-3bcb-0e44d3bf3743
11.14.2014 13:16:52.85 w3wp.exe (0x1B84)
0x0770 SharePoint Foundation
General ajlz0
High Getting Error Message for Exception System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> Microsoft.SharePoint.SPException: An internal error
occurred. (Exception from HRESULT: 0x8007054F) ---> System.Runtime.InteropServices.COMException: An internal error occurred. (Exception from HRESULT: 0x8007054F) at Microsoft.SharePoint.Library.SPRequestInternalClass.AddField(String bstrUrl,
String bstrListName, String bstrSchemaXml, Int32 grfAdd) at Microsoft.SharePoint.Library.SPRequest.AddField(String bstrUrl, String bstrListName, String bstrSchemaXml, Int32 grfAdd) --- End of inner exception stack trace ---
at Microsoft.SharePoint.SPGlobal.HandleComException(COMException comEx) at Microsoft.SharePoint.Library.SPRequest.AddField(String bstrUrl, String bstrListName, String bstrSchemaXml, Int32 grfAdd) at Microsoft.SharePoint.SPFieldCollection.AddFieldAsXmlInternal(String
schemaXml, Boolean addToDefaultView, SPAddFieldOptions op, Boolean isMigration, Boolean fResetCTCol) at Microsoft.SharePoint.ApplicationPages.AddFieldToContentTypePage.AddFieldToList(SPField fldSrc) at Microsoft.SharePoint.ApplicationPages.AddFieldToContentTypePage.UpdateList()
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.HandleError(Exception
e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
fd09cc9c-cf7b-1059-3bcb-0e44d3bf3743
I've tried to make changes to the parent site content type, however those changes to not push down to the library in question. The missing columns have varied types (single line of text, lookup, managed metadata and so forth). All of these content types &
site columns were created through the user interface of SharePoint.
Can anyone help me with any ideas what has happened and/or how to fix this problem?Hi Hans,
As I understand, you have custom content type in 3 libraries, while the issue occurs to the columns in this content type.
I wonder if the issue occurs to other two libraries as well?
From your description, "I've tried to make changes to the parent site content type, however those changes to not push down to the library in question", do you mean that changes in content type are not reflected to the list which is added to this
content type. If that is the case, I'd suggest you recreate content type.
If the site content type works well in other two libraries, please create a new library and add this content type. If it works well, then move the list content to this new list.
Regards,
Rebecca Tu
TechNet Community Support -
Sharepoint client object model - Pull files from one site and move to another
Dear All,
I am using client object model to retrieve files of certain criteria using caml query and copy them to some other site using
client object model. There is no exception being thrown, but the application is not performing either. No files are being copied to destination. Here is the code. Please advise.
The message box that I have kept at the end is being displayed, but no files are being copied.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Net;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Microsoft.SharePoint;
using SP = Microsoft.SharePoint.Client;
namespace WindowsFormsApplication2
public partial class Form1 : Form
public Form1()
InitializeComponent();
private void Form1_Load(object sender, EventArgs e)
private void button1_Click(object sender, EventArgs e)
SP.ClientContext srcContext = new SP.ClientContext(textBox1.Text);
srcContext.Credentials = new NetworkCredential(textBox3.Text, textBox4.Text, textBox5.Text);
SP.ClientContext destContext = new SP.ClientContext(textBox2.Text);
destContext.Credentials = new NetworkCredential(textBox3.Text, textBox4.Text, textBox5.Text);
SP.CamlQuery camlQuery = new SP.CamlQuery();
camlQuery.ViewXml = "<View Scope='RecursiveAll'><Query><Where><And><Geq><FieldRef Name='Created' /><Value IncludeTimeValue='TRUE' Type='DateTime'>2013-01-01T04:16:20Z</Value></Geq><And><Lt><FieldRef
Name='Created' /><Value IncludeTimeValue='TRUE' Type='DateTime'>2013-12-31T04:16:43Z</Value></Lt><Or><Eq><FieldRef Name='Document_x0020_Classification' /><Value Type='Choice'></Value></Eq><Eq><FieldRef
Name='Document_x0020_Classification' /><Value Type='Choice'>Case Studies</Value></Eq></Or></And></And></Where></Query></View>";
SP.Web oWebsite = srcContext.Web;
srcContext.Load(oWebsite, website => website.Webs);
srcContext.ExecuteQuery();
SP.Web dWebsite = destContext.Web;
destContext.Load(dWebsite);
destContext.ExecuteQuery();
foreach (SP.Web web in oWebsite.Webs)
MessageBox.Show(web.Title);
foreach (SP.List list in web.Lists)
if (list.BaseType.ToString() == "DocumentLibrary")
MessageBox.Show(list.Title);
SP.ListItemCollection collListItem = list.GetItems(camlQuery);
srcContext.Load(collListItem);
srcContext.ExecuteQuery();
foreach (var doc in collListItem)
SP.File f = doc.File;
srcContext.Load(f);
srcContext.ExecuteQuery();
string destLibrary = "shared Documents";
string nLocation = dWebsite.ServerRelativeUrl.TrimEnd('/') + "/" + destLibrary.Replace(" ", "")
+ "/" + f.Name;
SP.FileInformation fileInfo = SP.File.OpenBinaryDirect(srcContext, f.ServerRelativeUrl);
SP.File.SaveBinaryDirect(destContext, nLocation, fileInfo.Stream, true);
MessageBox.Show("Completed");
sk.RakhishmaHi,
To copy files from one site collection to another site collection, the simplest way is to open document library in windows explorer view.
Go to document library, click library tab, click open with explorer.
You can open the document library1 in explorer then copy the files which you want to paste to another site collection
document library2, then open the document library2 in explorer to paste the documents.
Besides, there are other method:
https://social.msdn.microsoft.com/Forums/office/en-US/67282348-25c7-4bd0-9d95-61024c6892f9/how-we-move-a-document-library-from-one-site-collection-to-another-sitecollection?forum=sharepointgeneralprevious
https://social.msdn.microsoft.com/Forums/sharepoint/en-US/8c112d85-1ab8-426b-be37-d010cf8647fe/copy-a-list-from-one-site-collection-to-another-using-web-service
Best Regards,
Lisa Chen
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
How to delete a customer complete from R/3
Hi
How can i delete a customer from R/3 complete.
VD06 transaction only marks for deletion.
I am able to create sales order after marking
customer for deletion.
I want to remove customer completely from the System
Regards,
Abhimanyu.LHi
You can delete a customer from database only if:
- it runs archiving tools (for customer): here all customer setted to be deleted will be delete from database really;
- it runs report SAPF019 (it's better to set the checkbox "Delete per deletion flag only"), I've never run it.
Max -
How to register a new docicon/progid using CSOM/SharePoint Client object model
I know how to register a new file-type icon in SharePoint 2013 by modifying docicon.xml,
but is it possible via any sort of web-based API? Specifically I'm trying to do it for a SharePoint Online/office 365 site.Hi Dylan,
For SharePoint Online, the docicon.xml is stored in the SharePoint online Server and there is no such Web API could modify the xml file directly, so there is no easy way to achieve it.
As a workaround, you can add some JavaScript and Jquery in the master page to modify the file type icon to the new one.
<script>
var IMGs = document.getElementsByTagName("IMG")
for (var i=0; i<IMGs.length; i++)
var alt=IMGs[i].alt;
if (alt.substring(alt.length-4,alt.length)==".pdf")
IMGs[i].src="/yourlibrary/yourimage.gif";
</script>
Here is a similar thread for your reference:
https://social.technet.microsoft.com/forums/msonline/en-US/bf5ff648-eefb-4084-8204-9519efaf50e7/modifying-dociconxml-on-sharepoint-online
Best Regards
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Zhengyu Guo
TechNet Community Support -
How to update list item using client object model without changing created/modified dates?
Hello All,
I want to update list item using the SharePoint Client Object
Model without updating the created / modified date. Is it possible?
Please help.
Thanks.Using the SystemUpdate method should do the trick, according
to its literature.
Additionally, would something like this be of any use for you? Taken from this
Stack Exchange thread: -
public static class SPListItemExtensions
/// <summary>
/// Provides ability to update list item without firing event receiver.
/// </summary>
/// <param name="item"></param>
/// <param name="doNotFireEvents">Disables firing event receiver while updating item.</param>
public static void Update(this SPListItem item, bool doNotFireEvents)
SPItemEventReceiverHandling rh = new SPItemEventReceiverHandling();
if (doNotFireEvents)
try
rh.DisableEventFiring();
item.Update();
finally
rh.EnableEventFiring();
else
item.Update();
/// <summary>
/// Provides ability to update list item without firing event receiver.
/// </summary>
/// <param name="item"></param>
/// <param name="incrementListItemVersion"></param>
/// <param name="doNotFireEvents">Disables firing event receiver while updating item.</param>
public static void SystemUpdate(this SPListItem item, bool incrementListItemVersion, bool doNotFireEvents)
SPItemEventReceiverHandling rh = new SPItemEventReceiverHandling();
if (doNotFireEvents)
try
rh.DisableEventFiring();
item.SystemUpdate(incrementListItemVersion);
finally
rh.EnableEventFiring();
else
item.SystemUpdate(incrementListItemVersion);
/// <summary>
/// Provides ability to update list item without firing event receiver.
/// </summary>
/// <param name="item"></param>
/// <param name="doNotFireEvents">Disables firing event receiver while updating item.</param>
public static void SystemUpdate(this SPListItem item, bool doNotFireEvents)
SPItemEventReceiverHandling rh = new SPItemEventReceiverHandling();
if (doNotFireEvents)
try
rh.DisableEventFiring();
item.SystemUpdate();
finally
rh.EnableEventFiring();
else
item.SystemUpdate();
private class SPItemEventReceiverHandling : SPItemEventReceiver
public SPItemEventReceiverHandling() { }
new public void DisableEventFiring()
base.DisableEventFiring();
new public void EnableEventFiring()
base.EnableEventFiring();
Steven Andrews
SharePoint Business Analyst: LiveNation Entertainment
Blog: baron72.wordpress.com
Twitter: Follow @backpackerd00d
My Wiki Articles:
CodePlex Corner Series
Please remember to mark your question as "answered" if this solves (or helps) your problem. -
Delete site collection using Client object model
Is it possible to delete a site collection using Client object model?
-PrashantI don't think you can create or delete a site-collection using SharePoint Client Object Model. You'd need to leverage admin web services (
http://Site/_vti_adm/Admin.asmx) (or) server-side object model (or) powershell for this task.
Please mark the replies as answers if they help or unmark if not. -
How to execute XML batch commands using SharePoint Web services or Client Object Model
Hi,
I have a requirement to execute some batch commands to update SharePoint View Style, how can i do it using SharePoint webservices or SharePoint Client Object model.
I need to execute the following Batch command over a particular web.
<Method ID="UpdateView">
<SetVar Name="Cmd">UpdateView</SetVar>
<SetList Scope="Request">{GUID of List}</SetList>
<SetVar Name="View">{GUID of View}</SetVar>
<SetVar Name="ViewStyle">6</SetVar>
<SetVar Name="RowLimit">100</SetVar>
<SetVar Name="Paged">TRUE</SetVar>
</Method>Hi
I tried it already... But UpdateView Method in the Views.asmx and Lists.asmx, both are not supporting for updating the style of the view (like Boxed, Newsletter...).
If you have any code sample which will do this job with any of the SharePoint web services, please share it.. -
How to delete a customer in R/3 beside vd06?
Hi
how to delete a customer in R/3 besides vd06.
vd06 marks it for deletion though i can create a
sales order with a warning.
Regards,
Abhimanyu.LHi
The only way is to archive the customer. If the requirement is to prevent the customer from being used then try VD05 and block the customer.Another alternative is to write code in the user exit mv45afzb and check if the customer is marked for deletion then give an error message
Reward if this helps
Thanks -
HT3702 How to delete credit card info from iTunes account
How to delete credit card info from iTunes account?
HI KiwiMCB,
Please Contact Customer Care; an agent will be able to help you with that.
Best,
Sara -
How to delete a custom format in Numbers 3
I am one of the poor unfortunates that has upgraded to Numbers 3 BIG mistake!!
However does anyone know how to delete a custom format in Numbers 3?
I'm not sure where the custom format came from in the erlier version of numbers. I guess I must have created it for something, I can't remember what.
It now appaers that when I send a Numbers 3 document via email to an Excel format it adds a weird custom format that turns currency into garbage. Once in Excel simply going to format cells and deleting this odd format cures the problem.
If I could find a way of deleting it in Numbers 3, hopefully the problem will go away.
This is far from the only problem I'm having with Numbers 3. It's begining to look like I'll have to abandon Numbers 3 having had to go to the expense of buying a new iPad because Numbers 3 documents (and presumably Pages Keynote etc) no longer work on the original iPad.I never promote the method the deletion unless you understand the underlying tables of planning, if you search on the forum you will see posts on the subject just like this one - Delete dimension from planning application
Cheers
John
http://john-goodwin.blogspot.com/ -
How to delete a custom dimension in planning - 9.3.1
Hi
some one please let me know how to delete a custom dimension in planning
ThanksI never promote the method the deletion unless you understand the underlying tables of planning, if you search on the forum you will see posts on the subject just like this one - Delete dimension from planning application
Cheers
John
http://john-goodwin.blogspot.com/ -
How to set a custom column in a workflow task.
Hello,
I'm looking for some assistance a bit with how to set a custom column in a Workflow Task.
I have a List Workflow that starts when an item is created in a list. The workflow, platform type SharePoint 2013, starts a new task, Task1, with Content Type 1. This Content Type has a custom column called Age. Once the Task1 is completed a new task, Task2,
with Content Type 2, starts and has the same column Age, as Task1.
How can I populate the Age column in Task2 with the content of the Age column in Task1?
Since I start the task by running "Assign a task to ..." Action I was thinking to copy the Age column from the Task1 to the list item that started Task1, which has a column Age as well, and then in Task2 to start another workflow - which is associated
with the Content Type 2, that would try to read the Age column from the list item that started Task2, which was set once Task1 was competed - I know it's complex but this is how I was thinking.
The problem with this approach is that I can't get a reference to the list item that started Task2 to read the Age from the list item.
Is there a better approach? I use SharePoint Designer 2013 to design all this.
Any assistance is appreciated.
Thank you.Hello Sebastian,
you can get the Age column from Task 1 and then update the Task 2 Age column with that value. I am not sure why you want to run another workflow on Task 2.
You can perform below steps to set Age column from Task 1 to Task 2.
1. Create Task 1 using Assign a task , wait till the task is completed.
2. Get the Age column value based on Task 1 once the task is completed.
3.Create Task 2 using Assign a task , uncheck wait till the task is completed option.
4. Update the Task 2 with Age column in Task1.
5. Use Wait for the field to equal value , check for Task Status is completed or not.
>>The problem with this approach is that I can't get a reference to the list item that started Task2 to read the Age from the list item.
you can get the related item from task list item to get the main list item.
Other option is, Use Javascript and CSOM in task edit form to get the Age column from Task1 and prepoluate the Age value when Task2 is opened.
Hope this helps.
My Blog- http://www.sharepoint-journey.com|
If a post answers your question, please click Mark As Answer on that post and Vote as Helpful
Maybe you are looking for
-
Digital Editions on iRex Digital Reader 1000?
Hello, iRex Technologies has just released their second generation e-reader, the Digital Reader 1000 (DR1000), with a 10.2 inch diagonal screen. They have a framework called the Universal Document Shell that allows 3rd parties to write document viewe
-
MacBook Pro mid 2010 goes to sleep right after booting
Hello and thank you in advance to anyone that can help me. I have a MacBook Pro mid 2010 and I recently spill tea on the computer. I took everything and dried out everything hoping and praying that it will start again. I put everything back together
-
Connecting to a database using xp
I've downloaded and installed the SQL developer and Oracle Database 10g Express Edition. I'm using WinXP. The tutorial is located at: http://www.oracle.com/technology/getting-started/sqldev.html I've followed the instructions but when I test the defi
-
Viewing CSS in Dreamweaver...
Hi All - I can't seem to view any of the css that's being brought in via a header.cfm, which is included in the Application.cfc when working in Dreamweaver. All works fine when previewed in the browser as expected. I've tried "live preview" (i think
-
Bridge_How Fit-to-Screen with different resolution pictures in Fullscreen/Slideshow
Hallo, I´m looking for a solution for my following problem: I have several photographs in totally different resolutions. Some are pretty small, some are huge. I want to show them with Bridge in FullScreen-Preview or maybe as a slideshow. How can i br