Import Workflow from Site-Template to Visual Studio 2012

 
Hi,
I would like to import a SiteCollection Template into VS 2012 to create a sandboxed solution WSP Deployment Package.
The Package should contain some document libraries, some content types and a reusable workflow running in one of the imported content types.
So when I create the package and deploy it on a new sitecollection, all libraries and content types has been created.
The only problem is that under "site setting"->Site Content Types"->"My ContentType"->"Workflow Settings" there is no workflow, like it was in the original sitecollection.
When I then use Designer 2013 I see the old workflow. I can make a copy there and publish it again, then I can bind it to my content type.
What do I have to import from the template / or change in my VS project to bind the workflow automaticly at deployment time.
Thanks a lot
Stephan

Hi,
According to your post, my understanding is that you had an issue about save site as template with the workflow.
Did you do some customization for the wsp template in the VS?
By default, when we save a site as a template, then the workflow attached with list or content type would be preserved.
You can save a site as template, and use the template to create a new site directly to check whether the workflow preserved in the site.
Thanks,
Jason
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]
Jason Guo
TechNet Community Support

Similar Messages

  • Cannot open visio template in visual studio 2012 COM Exception "An exception occurred"

    Hi,
     I have following piece of code
    DocumentnewDocument =
    null;
    if
    (visioApplication ==
    null)
    visioApplication = newVisio.Application();
    newDocument = visioApplication.Documents.OpenEx(fileTemplate, (
    short)Visio.VisOpenSaveArgs.visOpenCopy);
    This works fine in visual studio 2008 and server 2008. But after migration to visual studio 2012 and windows server 2012(this code runs in a windows service in server) it is no longer working throwing COM Exception - "An Exception occurred" while
    opening a template. Visio 2013 is installed on both server and client. Tried changing the file extension from vst to vstx. but no use.

    Hi
    SM_CT,
    According to the error message “Exception from HRESULT: 0x800706BE”, you can refer to this article.
    http://support.microsoft.com/kb/2461206
    If there is anything I can do for you regarding this issue, feel free to post back.
    Best regards,
    Greta Ge
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • How to Create a Custom Project Site Template Using Visual Studio

    I know how to make changes and save a site as a template but I need to be able to create a new project site template during deployment to different environments. Trying to have this not be a manual process.

    Hello,
    This article might help:
    http://blogs.msdn.com/b/sambetts/archive/2013/10/17/creating-a-clean-visual-studio-solution-from-a-sharepoint-2013-site-template.aspx
    Start with a default Project Site (create a new site from the Project site template) and save out the WSP then import into VS.
    Paul
    Paul Mather | Twitter |
    http://pwmather.wordpress.com | CPS

  • Upgrade from SSRS 2008 to visual studio 2012/2013

    Hello,
    Is it possible to upgrade Visual Studio BIDS file/project types from 2008R2 to 2012/2013:
    SSRS *.sln
    SSIS * .dtsx
    *.dbproj
    If it is possible, can the resulting (upgraded) 2012/2013 file/projects be back-ended in 2008R2 SQL Server database engine?
    Or is it necessary to have the version of the back-end SQL Server database engine match the version of the VS BIDS projects?
    thanks,

    Microsoft Visual Studio 2010 does not support Business Intelligence Development Studio Integration Services, Report Services and Analysis Services projects for SQL Server 2008 and SQL Server 2008 R2.
    To work around this issue, you can install Visual Studio 2008 alongside Visual Studio 2010 on the same machine and then open the Business Intelligence Development Studio projects in Visual Studio 2008.
    (we have to follow side-by-side installation of SQL Server 2012 and SQL Server 2008. since you may have
    some issues with BIDS.)

  • Need help on how to programmatically pass the Binary Security Token from C# code in visual studio 2012

    Hi All,
    Below is my signed SOAP request. I don't have any web.config configuration for this also no idea on how to implement message level security. Could you please suggest on implementation.
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:v1="http://www.notification/V1.0"
    xmlns:v11="http://www./effectivity/V1.0">
    <soapenv:Header>
    <wsse:Security
    xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
    xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
    <wsse:BinarySecurityToken
    EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary"
    ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile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C3cV5qCqmh6fCaCsI3us2kSJjHMZa
    +OSDLI7K01pDP85TieHeoONBo8mRKsOQ0e1FGXH2BkbXSN1DgfJ1IzddaBbSsnjR5gNrRMmZJnCXnluT8Gmwyv9EKjMit6yt0sWwrADd5ZIjYUnxnrkgfXpPY2kqK2gOl12IHjFK6d5vUsGTlIv9H3OmtCWVBHpR125C0CZvU987z3u9Gv4Jiuv/LpDuv1bNuqNHsQfSqSYsjEreGIP
    +DapzhMOefiv+kN4nLj3Owk4VdQm9
    +dxekwaS7HFwAQGOVik877mXxmjRhwxtZPW0ZrWs3fZ2z90Ppki4cGN/rtaLGz
    +WwicrPt1B34296kQkkIolWtiGjkpnQ==</wsse:BinarySecurityToken>
    <ds:Signature Id="SIG-9B329C3CD7BD01ABE81422559607628111"
    xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
    <ds:SignedInfo>
    <ds:CanonicalizationMethod
    Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
    <ec:InclusiveNamespaces PrefixList="soapenv v1 v11"
    xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#"/>
    </ds:CanonicalizationMethod>
    <ds:SignatureMethod
    Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/>
    <ds:Reference URI="#id-CF533499567BE717AA1422396248543100">
    <ds:Transforms>
    <ds:Transform
    Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
    <ec:InclusiveNamespaces PrefixList="v1 v11"
    xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#"/>
    </ds:Transform>
    </ds:Transforms>
    <ds:DigestMethod
    Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
    <ds:DigestValue>AYy1/Ni9XTOZy4F3AFagcxkLnws=</ds:DigestValue>
    </ds:Reference>
    </ds:SignedInfo>
    <ds:SignatureValue>B/psgt7s4dcnlAFK9HWPYSPRQi
    +B75tj7zv6KCG2IFd3y3kE0k4DjNyK17ZcqhXkUdxcmDoydbnH
    4WUq7XmeG05w/VTbwn8g8RIoY48NaCOCQsXl6RztxhzRxbeocwngebUclJPnEPw3Nr0zguvNFuPa
    wBkqcYFAgwG2dlwl/B8QVjvu1xjeXlVP5uHfubdpP
    +tG0OnCWztG16108ORqtA2Df3Aj/JnXk2jt
    RcIx6fPNna
    +mv/MtCGOpSO4vDOf66He/UunkKjo/O5OvO9wuRhZOMJcSEkwVHCBAr9qbRGR72snq
    C15GRcCpFyZIP7tElyY1WhBppKNi9j+YA0w9cQ==</ds:SignatureValue>
    <ds:KeyInfo Id="KI-9B329C3CD7BD01ABE81422559607628109">
    <wsse:SecurityTokenReference
    wsu:Id="STR-9B329C3CD7BD01ABE81422559607628110">
    <wsse:Reference
    URI="#X509-9B329C3CD7BD01ABE81422559607628108"
    ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"/>
    </wsse:SecurityTokenReference>
    </ds:KeyInfo>
    </ds:Signature>
    </wsse:Security>
    </soapenv:Header>
    <soapenv:Body wsu:Id="id-CF533499567BE717AA1422396248543100"
    xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
    <v1:sendNotificationRequest>
    <v1:notificationHeader>
    <sourceAppID>PORTAL</sourceAppID>
    <creationTimestamp>2015-01-27T23:27:16.932Z</creationTimestamp>
    </v1:notificationHeader>
    <v1:notificationTarget>
    <!--Optional:-->
    <userID>?</userID>
    <!--Optional:-->
    <v1:emailChannel>
    <!--Optional:-->
    <v1:fromAddress>
    <v1:emailAddress>?</v1:emailAddress>
    <!--Optional:-->
    <v1:name>?</v1:name>
    </v1:fromAddress>
    <!--Zero or more repetitions:-->
    <v1:toAddress>
    <v1:emailAddress>?</v1:emailAddress>
    <!--Optional:-->
    <v1:name>?</v1:name>
    </v1:toAddress>
    <!--Zero or more repetitions:-->
    <v1:CCAddress>
    <v1:emailAddress>?</v1:emailAddress>
    <!--Optional:-->
    <v1:name>?</v1:name>
    </v1:CCAddress>
    <!--Zero or more repetitions:-->
    <v1:BCCAddress>
    <v1:emailAddress>?</v1:emailAddress>
    <!--Optional:-->
    <v1:name>?</v1:name>
    </v1:BCCAddress>
    </v1:emailChannel>
    <!--Optional:-->
    <v1:SMSChannel>
    <message>?</message>
    <phoneNumber>?</phoneNumber>
    </v1:SMSChannel>
    <!--Optional:-->
    <v1:portalNotifChannel>
    <creationDate>?</creationDate>
    <expiryDate>?</expiryDate>
    </v1:portalNotifChannel>
    </v1:notificationTarget>
    <!--Zero or more repetitions:-->
    <v1:company>
    <companyId>?</companyId>
    <!--Optional:-->
    <sourceSystemId>?</sourceSystemId>
    </v1:company>
    <!--Optional:-->
    <v11:aircraftEffectivity>
    <!--Zero or more repetitions:-->
    <v11:aircraftFamily>
    <aircraftFamilyName>?</aircraftFamilyName>
    <!--Zero or more repetitions:-->
    <v11:aircraftModel>
    <aircraftModelName>?</aircraftModelName>
    <!--Zero or more repetitions:-->
    <v11:aircraft>
    <aircraftSerialNumber>?</aircraftSerialNumber>
    </v11:aircraft>
    </v11:aircraftModel>
    </v11:aircraftFamily>
    </v11:aircraftEffectivity>
    <!--Optional:-->
    <v11:userEffectivity>
    <!--You have a CHOICE of the next 2 items at this level-->
    <!--Zero or more repetitions:-->
    <role_DN>?</role_DN>
    <!--Zero or more repetitions:-->
    <role_CN>?</role_CN>
    </v11:userEffectivity>
    <!--You have a CHOICE of the next 2 items at this level-->
    <!--Optional:-->
    <v1:forcedNotify>
    <!--You have a CHOICE of the next 2 items at this level-->
    <!--Zero or more repetitions:-->
    <v1:notificationTarget>
    <!--Optional:-->
    <userID>?</userID>
    <!--Optional:-->
    <v1:emailChannel>
    <!--Optional:-->
    <v1:fromAddress>
    <v1:emailAddress>?</v1:emailAddress>
    <!--Optional:-->
    <v1:name>?</v1:name>
    </v1:fromAddress>
    <!--Zero or more repetitions:-->
    <v1:toAddress>
    <v1:emailAddress>?</v1:emailAddress>
    <!--Optional:-->
    <v1:name>?</v1:name>
    </v1:toAddress>
    <!--Zero or more repetitions:-->
    <v1:CCAddress>
    <v1:emailAddress>?</v1:emailAddress>
    <!--Optional:-->
    <v1:name>?</v1:name>
    </v1:CCAddress>
    <!--Zero or more repetitions:-->
    <v1:BCCAddress>
    <v1:emailAddress>?</v1:emailAddress>
    <!--Optional:-->
    <v1:name>?</v1:name>
    </v1:BCCAddress>
    </v1:emailChannel>
    <!--Optional:-->
    <v1:SMSChannel>
    <message>?</message>
    <phoneNumber>?</phoneNumber>
    </v1:SMSChannel>
    <!--Optional:-->
    <v1:portalNotifChannel>
    <creationDate>?</creationDate>
    <expiryDate>?</expiryDate>
    </v1:portalNotifChannel>
    </v1:notificationTarget>
    <!--Optional:-->
    <notificationChannel>
    <!--Zero or more repetitions:-->
    <userID>?</userID>
    <forcedNotifyChannel>?</forcedNotifyChannel>
    <!--Optional:-->
    <v1:fromAddress>
    <v1:emailAddress>?</v1:emailAddress>
    <!--Optional:-->
    <v1:name>?</v1:name>
    </v1:fromAddress>
    </notificationChannel>
    <!--Optional:-->
    <v11:userEffectivity>
    <role_DN>cn=owner_purchasing,cn=owner,cn=eservices_basic_access,ou=eservices,ou=groups,dc=bombardier,dc=com</role_DN>
    <role_DN>cn=owner_broker,cn=owner,cn=eservices_basic_access,ou=eservices,ou=groups,dc=bombardier,dc=com</role_DN>
    </v11:userEffectivity>
    </v1:forcedNotify>
    <subject>AHMS Notification</subject>
    <payload>You are receiving an AHMS notification</payload>
    <v1:isGroupingAllowed>false</v1:isGroupingAllowed>
    <v1:emailAttachment>
    <v1:fileName>?</v1:fileName>
    <!--Optional:-->
    <v1:fileSize>?</v1:fileSize>
    <!--Zero or more repetitions:-->
    <Content>cid:354298590057</Content>
    <!--Zero or more repetitions:-->
    <ContentEncoding>?</ContentEncoding>
    <!--Zero or more repetitions:-->
    <ContentEncodingType>?</ContentEncodingType>
    </v1:emailAttachment>
    <!--Optional:-->
    <priority>?</priority>
    </v1:sendNotificationRequest>
    </soapenv:Body>
    </soapenv:Envelope>
    Any help would be great.
    I need to programmatically send the token to the webservice and initiate request and response accordingly
    Thanks in advance.

    Hi Shawn,
    Thanks for your help. I am still struggling. There is a Binary security token element which will contain the public version of the certificate,
    with the certificate itself sent along as base64 encoded data.
    Below is my code, if you can suggest:
    ClientSection clientSection = ClientSection)WebConfigurationManager.GetSection("system.serviceModel/client");
    ChannelEndpointElement endpoint = clientSection.Endpoints[0];
    string endpointStr = string.Format("Address: {0}; BindingConfiguration: {1}; Contract: {2}", endpoint.Address.ToString(), endpoint.BindingConfiguration, endpoint.Contract);
    EndpointAddress remoteAddress = new EndpointAddress(endpoint.Address.ToString());
    NotificationServiceClient client = new NotificationServiceClient(endpoint.BindingConfiguration, remoteAddress);
    X509Store store = new X509Store(StoreName.Root, StoreLocation.LocalMachine);
    store.Open(OpenFlags.ReadOnly);
    X509Certificate2 cert = new X509Certificate2();
    for (int i = 0; i < store.Certificates.Count; i++)
    if (store.Certificates[i].Subject == "E=[email protected], CN=collab-dev.aero.bombardier.net, OU=Aerospace, O=Bombardier Inc., L=Montreal, S=Quebec, C=CA")
    cert = store.Certificates[i];
    //byte[] rawdata = cert.GetRawCertData();
    //BinarySecretSecurityToken token = new BinarySecretSecurityToken(rawdata);
    X509SecurityToken token = new X509SecurityToken(cert);
    client.ClientCredentials.ClientCertificate.Certificate = cert;
    // instead of certificate the enoced token needs to be sent.
    Any help would be great. I am totally new to wcf.
    Thanks.

  • Setting Workflow status not working in imported workflow from SPD to Visual Studio

    Hi all,
    I have created SPD workflow and imported in visual studio. When I deploy imported Workflow using visual studio feature I found that Setting Workflow Status action is not working. Do I need to change Set Workflow status activity in Visual studio to make it
    work.
    Rohit Pasrija

    Hi,
    According to your post, my understanding is that Setting Workflow status did not work in imported workflow from SharePoint Designer to Visual Studio.
    I try to reproduce the issue and the result is the same as yours.
    After I import the workflow, choose the .xoml file, the view is as below:
    To troubleshooting the issue, I add a new item to the project and select “Sequential Workflow” in the template.
    After I click the Tool, I find that there don’t have the “SetCustomWorkflowStatus1” activity.
    To set the status of the state, we need to use the “Set State” Activity in the “SharePoint Workflow” toolbar.
    That is the reason why the “SetCustomWorkflowStatus1” activity does no work.
    More information:
    Apply Custom Values to Visual Studio Workflow Statuses
    Thanks,
    Linda Li                
    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]
    Linda Li
    TechNet Community Support

  • How to create a three state approval workflow in SharePoint 2013 using visual studio 2013

    Hi Everyone,
    i have a requirement like 3 state to approve. Here is the details:- when the item added into the list it will go for reviewer. Once the reviewer review the item, he will assign the task to concern person/department(Parallel process more than two persons).
    Once they will approve the request again it will come back to reviewer and he will assign the task to team member(parallel process). Once the team member accepted then workflow terminate.
    i want develop this workflow using visual studio 2013 only, not using designer.. 
    Thanks in Advance.....
    Mallesh

    Hello,
    you can find multiple sample on the web like those
    http://www.splessons.com/2013/12/create-state-machine-workflow-in-sharepoint-2013-using-visual-studio-2012/
    http://msdn.microsoft.com/en-us/library/ee231606.aspx
    I don't think that's very different using VS2013 or VS2012
    Best regards, Christopher.
    Blog |
    Mail
    Please remember to click "Mark As Answer" if a post solves your problem or
    "Vote As Helpful" if it was useful.
    Why mark as answer?

  • SSIS failed to execute in SSDT-BI for Visual studio 2012 after SQL 2012 SP2 upgrade

    Hello,
    I have applied sql server 2012 sp2 on my dev workstation and I am currently having this error message when trying to execute a SSIS package from SSDT-BI for visual studio 2012 : "Method
    not found: 'Boolean Microsoft.SqlServer.Dts.Design.VisualStudio2012Utils.IsVisualStudio2012ProInstalled()'. (Microsoft.DataTransformationServices.VsIntegration)"
    I found this link on SSIS forum :
    IsVisualStudio2012ProInstalled() method not found error when running an SSIS package from VS2012
    I don't have neither Gacutil.exe nor Visual studio professional installed so it can't be fixed this way... and anyway, this means we will use the old assembly version of ssis...
    sql server 2012 sp2 setup doesn't apply to SSDT-BI 2012 ?
    what can we do ?
    thanks,
    Stéphane

    Hi Stephane Guilleminot,
    According to your description, you do not execute a SSIS package from SSDT-BI for visual studio 2012 after upgrading to SQL Server 2012 SP2. The workaround is still necessary to apply SP2 and CU1 for SP2 (11.0.5532), then you still have to replace Microsoft.SqlServer.Dts.Design.dll
    (11.0.5532.0) with the last working version: 11.0.3412.0 from SP1 CU9.
    There is similar issue about executing SSIS package after upgrading SQL Server 2012, you can review the following similar post.
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/53606f1b-38b0-48d3-a526-12cac5258d0b/vs2012-reports-failed-to-start-project-when-executing-ssis-package-after-applying-cu10-for-sql?forum=sqltools
    Regards,
    Sofiya Li
    If you have any feedback on our support, please click
    here.
    Sofiya Li
    TechNet Community Support

  • EnterProjectStage - reading GUID from a string variable within Workflow created in Visual Studio 2012.

    Hi,
    I am creating a Project Server Workflow (site workflow) using Visual Studio 2012.
    If i set the "EnterProjectStage" activity with a GUID within quotes the workflow works
    (as suggested in the MSDN blog (http://blogs.msdn.com/b/project_programmability/archive/2012/11/07/creating-project-workflows-using-visual-studio-2012.aspx).
    However, the GUID of stages will change from environment to environmet (QA, Stage, PROD). So, I tried setting the GUID in a string variable (which i am populating dynamically) and assigned the string variable to the "EnterProjectStage"
    activity. However, this dynamic assignment of stage id to "EnterProjectStage" does not work and after deployment the workflow dumps with the following error:
    ===============================================
    Exception Starting Workflow: Sequence contains no elements. Trace: at System.Linq.Enumerable.First[TSource](IEnumerable`1 source) at Microsoft.Office.Project.Server.BusinessLayer.Workflow.<FillWorkflowStatusTableFromXaml>b__47(XElement
    e) at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext() at System.Linq.Enumerable.<DistinctIterator>d__81`1.MoveNext() at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) at System.Linq.Enumerable.ToList[TSource](IEnumerable`1
    source) at Microsoft.Office.Project.Server.BusinessLayer.Workflow.FillWorkflowStatusTableFromXaml(String xaml, WorkflowDataSet& ds, Guid projUid) at Microsoft.Office.Project.Server.BusinessLayer.Workflow.StartWorkflow(Guid projectGuid, Guid enterpriseProjectTypeUid,
    Boolean isNewProject, Guid previousEntepriseProjectTypeUid, Boolean skipStage, Guid stageToSkipTo):
    WorkflowExceptionStartingWorkflow (35115). Details: id='35115' name='WorkflowExceptionStartingWorkflow'
    uid='b31d825e-1d00-e411-9466-005056b11412'. 
    ===============================================
    Is there a way the "EnterProjectStage" can be made dynamic so that it reads from a variable.
    Thanks,
    Amitava.

    Arthur,
    Thank you for your reply.  But at this point, one of my points of confusion is what software I have available to me.  I wish I had a useful central help desk to call up and just say, "Hey, load me up with all of the professional version(s) of Visual
    Studio.  But I do not know what we have license to.  And I kind of need to know what the options are, so that I can ask a specific question of our vast buracracy.
    For now, I have downloaded only free versions of Visual Studio client software.  Since my company does have servers running Microsoft SQL Server, I am going to assume that we have proper licensing for those servers.  But does that server license
    allow me to get any professional versions of the PC client software for the various Visual Studio(s) 2012?
    And if I get a professional version of Visual Studio 2012, does that do away with the three different flavors that I have right now?  I have 2012 versions of SQL Server Management Studio, Visual Studio Express, and Visual Studio Shell (Integrated).
    Your feedback is much appreciated.
    Thanks!

  • Import SharePoint Designer 2013 workflows into Visual Studio 2012

    I have some 2013 workflows created with SharePoint Designer 2013. I can save the workflows as templates ie WSP files but i cannot figure out how to import them into visual studio 2012. Is this possible? please note the import resusable workflows option
    is for sharepoint 2010.

    "The workflow activities/actions are in separate assemblies, and each tool references a different one." so you will get an error when you try to open the SPD workflow using Visual Studio.
    Please check similar thread below for more details
    http://sharepoint.stackexchange.com/questions/75196/importing-a-sharepoint-2013-workflow-in-visual-studio
    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

  • How to create a site column through Visual Studio 2010?

    I was trying to create lists, content type and site columns through Visual Studio 2010. But I could not figure out how to add site column? What item do I need to add for this and what kind of coding is to be done?

    Try this
    1. Create a Empty project in Visual studio.
    2.The Empty SharePoint Project template does not include any Features in the Features folder. To add a new Feature to this project, right -click the Features folder, and click Add Feature. This adds a new Feature component to the folder; double – click the
    Feature1 icon in Solution Explorer to modify the Feature ’ s
    metadata using the Feature designer. The Title and Description values appear on the Features pages in Site settings. It is a good idea to make these values
    descriptive so that administrators will know what they are adding to the site when they activate the feature.
    The feature ’ s scope determines where the feature can be activated within SharePoint. Please Note – Certain components, such as site columns, content types, Master pages, and Page Layouts, are installed at the site collection level and made available to all
    sites within the collection. These components require that the scope for the feature be set to “ Site. ”
    3. Next, add a new item to the project (Right – click project name ➪ Add ➪ New Item) and select the Empty Element template from the Add New Item dialog box.
    The Empty Element template is an XML fi le where you can enter CAML Field definitions.
    Following is what you will add in your elements.xml file –
    < Elements xmlns="http://schemas.microsoft.com/sharepoint/" >
    < Field ID="{76C140E1-D827-433B-AD38-257F9594B846}"
    Name="CustomCol"
    DisplayName="My Custom Site Column"
    Group="Custom group"
    Type="Text"
    Required="FALSE"/ >
    < Field ID="{5F516D92-969C-4661-81B9-C9210E2A2FDC}"
    Name="Choice Type"
    DisplayName="My Choice Type"
    Group="Custom group"
    Type="Choice"
    Required="FALSE" >
    < CHOICES >
    < CHOICE > Medical < /CHOICE >
    < CHOICE > Dental < /CHOICE >
    < CHOICE > Vision < /CHOICE >
    < CHOICE > Insurance < /CHOICE >
    < /CHOICES >
    < /Field >
    < /Elements >
    4. To deploy the Site Columns defined in the Elements file, right – click the project name in the Visual Studio Solution Explorer, and select Deploy. This will deploy the solution file to the solution store and activate the Feature in the targeted site collection.

  • C# Templates for Visual studio

    Im told I should be able to load the C# templates in Visual studio, but I dont see them listed and trying to find them "online" doesn't get me what im looking for. Just starting to program in C# so all I really want to do is start creating some
    test programs and learn.
    Does anybody know how I can get these templetes so I can start programming in C#?

    Hi Arthagus6234,
    To use C# templates, please ensure that you have installed the full version of visual studio rather than visual studio shell which is included in SQL Server installation.
    However, if C# templates is missing from full version of visual studio, you can type devenv /installvstemplates from visual studio command prompt to get missing templates or repair Visual Studio installation to solve the issue. Please check the following
    links for reference.
    https://chiragrdarji.wordpress.com/2008/05/06/missing-templates-in-visual-studio-installed-templates/
    http://stackoverflow.com/questions/20823499/visual-studio-2013-no-visual-basic-visual-c-sharp-web-templates-installed
    If the issue still persists, I would like to recommend you post the question in the  Visual Studio Setup and Installation  forum at
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=vssetup.  It is appropriate and more experts will assist you.
    Thanks,
    Lydia Zhang

  • Remove reference to Publishing Feature from site template

    Hi all, I have a custom site collection which I package as a wsp to deploy as a custom solution template to multiple sites.
    Accidentally, years ago I've activated Publishing Features in my site template and then disabled them. I still work and create new templates from my site without any problems (ShP 2010).
    Now, I've installed SharePoint 2013 and updated my site template to 2013. Then, I've created the new wsp but when I try to apply my template to a new site collection I receive an error message: "Failed to instantiate file "AlternateMediaPlayer.xaml"
    from module "Style LibraryMedia Player_Features\PublishingResources": Source path "Features\PublishingResources\AlternateMediaPlayer.xaml" not found."
    How could I remove all the reference to features belonging to Publishing Features?

    Hi Elena_B,
    According to your description, my understanding is that you want to remove reference to publishing feature from site template in SharePoint 2013.
    You can do as the followings:
    extract all files from WSP file by (a tool or) changing the wsp file to cab file and then extract all files to a working folder.
    edit the Onet.xml file to remove the unsupported features and save the changes.
    create a ddf file for makecab.exe to repack the wsp
    run cmd: makecab /f my.ddf to generate the new WSP file
    More information, please refer to the link:
    http://lassewikmark.wordpress.com/2009/11/16/howto-remove-unused-features-from-a-site-template-file/
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/37e96410-7fb9-462b-a3e7-c150f2de7107/site-template-and-disabled-feature?forum=sharepointadminprevious
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • C# expressions being lost when designing workflows in Visual Studio 2012

    When designing workflows in Visual Studio 2012, we are consistently running into a situation whereby clicking on the property value input box of an activity property, results in any existing value being cleared out and a message appearing which says "C:\
    ..... \obj\x86\Debug\TemporaryGeneratedFile_E7 .... D3.cs  This file has been modified outside of the source editor. Do you want to reload it?".
    Regardless of whether we choose Yes or No at this point, the property value has been erased and we cannot recover it. It happens more often than not. 
    We've also noticed that selecting the ellipses button within the activity property value input box results in a blank input box - even if a c# expression is clearly visible within the property window.
    We have installed the cumulative update for workflow manager 1.0 and are using Visual Studio 2012 with TFS 2012. 

    I have also noticed the same issue. Though sometimes you find the property box empty, if you close property window and open it again, it shows the value. There's few irritating issues in Visual studio 2012 workflow designer.
    About changing the file outside editor message, I've noticed if I open the workflow xaml file in xml editor inside visual studio with 'open with', then I get started the message.
    Thanks,
    Sohel Rana
    http://ranaictiu-technicalblog.blogspot.com

  • When should we must create site pages through visual studio?

    Generally site pages are created through SP designer. But what are business requirement when we MUST create site pages through visual studio rather than designer? I
    mean situation should demand we MUST create site pages through visual studio rather than designer. Need some example .

    Hi Sunil,
    when it contains code behind
    http://blogs.msdn.com/b/kaevans/archive/2010/06/28/creating-a-sharepoint-site-page-with-code-behind-using-visual-studio-2010.aspx
    Kind Regards,
    John Naguib
    Technical Consultant/Architect
    MCITP, MCPD, MCTS, MCT, TOGAF 9 Foundation
    Please remember to mark your question as answered if this solves your problem

Maybe you are looking for

  • IC burnt after giveing to service center

    I have g4 1303au, the problem with my laptop was with LCD display. When power on the laptop there was nothing on the screen so i used the display port to check whether the problem was with lcd or motherboard. When i connected the external display my

  • Post-Install Batch File Won't Run

    Ok here's the deal. I have created an application that needs a little "cleanup" after the installer finishes. To handle this operation, I created a batch file and told the LV installer to run it after the installation. This works fine on every comput

  • Installing the Apache HTTP Server Plug-In as a Dynamic Shared Object

    My environment is: Windows 2000 Server SP3 + Apache 2.0.45 + WebLogic 7.0 SP2 I followed the install guide. 1. Locate the shared object file for your platform. >>> No problem 2. Enable the shared object. >>> No problem 3. Install the Apache HTTP Serv

  • Workflow triggered.. But no instance created for BO.. !

    Hi.. I am triggering a workflow.. its been successful but the BO instance not been created.. The workflow object is not-set.. ! Any idea how to solve this.. ? Cheers

  • Refresh UWL from ABAP

    Hi All, I have a ABAP webdynpro which is launch from a work item. The work item is an action step. In the webdynpro there would be a button, after the user had click on the button i would call the FM 'SAP_WAPI_EXECUTE_WORKITEM'. But the workitem is s