Create Workflow template using WebPartPagesWebService

Hello,
I'm using SharePoint web service "WebPartPagesWebService", I used the method ValidateWorkflowMarkupAndCreateSupportObjects() to create a workflow template.
below is my method:
string DefinitionFile = @"C:\Users\Administrator\Desktop\WorkflowFolder\testwf.xoml";
string RulesFile = string.Empty;// @"C:\Users\Administrator\Desktop\WorkflowFolder\Workflow.xoml.rules";
string ConfigFile = @"C:\Users\Administrator\Desktop\WorkflowFolder\testwf.xoml.wfconfig.xml";
string flag = "2";
WebPartPagesWebServiceSoapClient client = new WebPartPagesWebServiceSoapClient();
client.ClientCredentials.Windows.AllowedImpersonationLevel = System.Security.Principal.TokenImpersonationLevel.Impersonation;
client.ClientCredentials.Windows.AllowNtlm = true;
string str = client.ValidateWorkflowMarkupAndCreateSupportObjects(DefinitionFile, RulesFile, ConfigFile, flag);
I get a error in the result: "Data at the root level is invalid. Line 1, position 1."
Is there any idea how ca i fix it? 
Many thanks

Hi Jinming ,
If you are creating a template to allocate overhead cost to the final product , you have to use either enviornment 009 ( Process Orders ) and enviornment 0012 ( Production Orders ).
For planning , use enviornment 001 ( Cost Estimate/production Orders ).
I dont think enviornment 104 is correct . I dont see the enviornment in my list ECC 5.0
Enviorment 009 and 012 are tried and tested . Use them as per your requirement .
Please revert back for any further clarifications .
Regards
Sarada

Similar Messages

  • Creating Workbench Templates Using the Workbook.

    Hi Guys,
    I am currently in the process of creating Workbench templates using the workbook. However, I am unsure how to define the order the channels will appear in the wb_page_configs tab. Currently these are the available fields in this tab,
    CHANNEL_EXTERNAL_ID          STRING_TYPE               
    PAGE_EXTERNAL_ID                STRING_TYPE     .          
    CFG_NAME_RESC                CUSTOM                    
    COL_POS                                      INTEGER_TYPE                    
    IS_REQUIRED                BOOLEAN_TYPE                     
    IS_FIXEDPARAMS                BOOLEAN_TYPE                     
    IS_USE_CHANNEL_PARAM       BOOLEAN_TYPE                    
    PARAMS                                      CUSTOM
    Which of these fields defines which column the channel is being put in (Column 1 or Column 2) also, how do you define that in the workbook?
    Which of these fields defines the order in the column (For example, At the top of Column 1, or the second channel in column 2) also, how do you define that in the workbook?
    any help is appreciated, any templates of workbench configs done via workbook will also be greatly appreciated. Not sure if I am looking @ the wrong workbook tab in order to define these parameters, but it seems that this is the sheet that I should be looking.
    Thanks.

    Hi,
    Let me try and explain it via an example.
    You should first look to define the Template in the wb_pages tab. You can use the standard one which is: workbench.default_buyer_template. This is the Default Buy-Side Template.
    Now coming to the wb_page_configs tab. Suppose you want to add the Contract Search channel in the Workbench view. For this your values would be:
    CHANNEL_EXTERNAL_ID: channel.contract_search
    PAGE_EXTERNAL_ID: workbench.default_buyer_template
    CFG_NAME_RESC: Leave blank
    COL_POS: 1
    IS_REQUIRED: FALSE
    IS_FIXEDPARAMS: FALSE
    IS_USE_CHANNEL_PARAMS: TRUE
    PARAMS: Leave Blank
    Similarly, if you want the To Do List to appear in the right hand channel, the only difference would be that the Col_POS would need to be set to value = 2.
    Hope this helps,
    Vikram Shukla
    Edited by: Vikram Shukla on Feb 1, 2012 7:42 PM

  • Security for creating web templates using web application designer

    I work for ChevronTexaco as a BW Security Analyst. I have a request to set up roles for web template creation using the Web Application Designer. Where can I get help in setting up the security for these types of roles? My experience is in setting up roles for running and creating queries in BEX. I need to know what additional authorizations will enable web template creation. Setting up a trace in ST01 has been less than helpful since it dumps out tons of RS_COMP tracing that doesn't help me much.
    The user wants to be able to create web templates for existing queries in BEX and restrict by rs_comp infocubes/areas/reportid, etc. and to be able to save to restricted role names. Are there new auth groups specific to this type of activity that I need to code for in addition to the basic end user or report builder authorizations?
    Any help would be greatly appreciated.
    Jeff Ehritt
    925 827-6012
    ChevronTexaco

    Thanks Marc, I'll check it out. My problem was that I was trying to create the role by granting a userid sap_all, sap_new and s.a_system as well as power user auths for a specific application. I set up a trace in ST01 for authorization cking on the ID while one of our BW Central Support people went into Web Designer to create a template and everything else they wanted to do.
    The resulting trace spewed out so much stuff from S_RS_comp and comp1 as to be virtually useless since it named scores of different cubes and infoareas that the analyst wasn't even interested in. The results puzzled me and made it extremely difficult to pin down the required authorizations. Usually ST01 can be used as a blueprint to create the role,ie; everything that the user touches is traced but no more than that. Have you seen this before? With just the new role I had set up the user could not save to a role unless I coded the fully qualified role name such as YRH_SENDAT_USER. YRH* would not work.
    Thanks,
    Jeff Ehritt
    ERP COE SAP BW Security

  • Creating new template using existing template

    Is anyone aware of a way to create a new project template using an existing template? I am testing a few scenarios and want to quickly be able to create a template without setting one up from scratch.
    I tried a few ways but could not find a way to do this - you can only create a project using a template, not another template.
    Thanks,
    Sachin

    Hi,
    Find the template from setup->Projects->Templates and use copyto , new template will be created from existing one.
    Barathidasan

  • Create a template using CPT1

    hey, all.
    I was trying to create a template to allocate production overhead. I used the environment 104 Bill of material as the environment. Then, it issued a error "Entry 104   does not exist in  (check entry)" It told me the value 104 were not specified in that table. However, I checked the Customizing the environment 104 was existed.
    How could this error come from ?
    Thanks.
    Jinming

    Hi Jinming ,
    If you are creating a template to allocate overhead cost to the final product , you have to use either enviornment 009 ( Process Orders ) and enviornment 0012 ( Production Orders ).
    For planning , use enviornment 001 ( Cost Estimate/production Orders ).
    I dont think enviornment 104 is correct . I dont see the enviornment in my list ECC 5.0
    Enviorment 009 and 012 are tried and tested . Use them as per your requirement .
    Please revert back for any further clarifications .
    Regards
    Sarada

  • How can I create a template using number on ipad2?

    I'm trying to create and save a new custom template using numbers on my ipad2. I haven't quite figure it out so any advise would be greatly appreciated.

    In numbers, with anysheet open, touch the wrench icon to get the help screen.  Search template, and look at the entry to add and organize sheets.. Thats about as far as they are going to help,you.
    I think the point is, you create the sheet you want to use as a template, then give is annmae you will remember, and just start with that sheet each time you want to use your template. 
    This is different than the normal template creation process, but works ok, i guess.
    Just based on the form factor, you might be better off doing the creation work on a computer and mouse, then export it tomthempad for future use.  It is hard, for me, to do extensive manipulation work on the ipad touchscreen.

  • Errors while creating a template file using

    Hi,
    I am new to jdeveloper 10g (10.1.3.4.0). I am developing a project where i was creating a template using ADF face core page in the component pallete. I select and drag the panel page component on the visual editor. I could see that the errors folder is created in the structure pane and i could see the following error messages in that folder. Can somebody help me in resolving these errors.
    Type oracle.adfinternal.view.faces.taglib.html.HtmlHtmlTag not found.
    Type oracle.adfinternal.view.faces.taglib.html.HtmlHtmlTag not found.
    Type oracle.adfinternal.view.faces.taglib.html.HtmlHtmlTag not found.
    Method setParent(com.sun.faces.taglib.jsf_core.ViewTag) not found in <unknown>.
    Method doStartTag() not found in <unknown>.
    Type oracle.adfinternal.view.faces.taglib.html.HtmlHeadTag not found.
    Type oracle.adfinternal.view.faces.taglib.html.HtmlHeadTag not found.
    Type oracle.adfinternal.view.faces.taglib.html.HtmlHeadTag not found.
    Method setParent(<unknown>) not found in <unknown>.
    Method setTitle(java.lang.String) not found in <unknown>.
    Method doStartTag() not found in <unknown>.
    Method doEndTag() not found in <unknown>.
    Type oracle.adfinternal.view.faces.taglib.html.HtmlBodyTag not found.
    Type oracle.adfinternal.view.faces.taglib.html.HtmlBodyTag not found.
    Type oracle.adfinternal.view.faces.taglib.html.HtmlBodyTag not found.
    Method setParent(<unknown>) not found in <unknown>.
    Method doStartTag() not found in <unknown>.
    Method doEndTag() not found in <unknown>.
    Method doEndTag() not found in <unknown>.Thanks in advance

    Hi,
    since 10.1.3 does not have templates I am wondering what you were attempting to do? It appears as if the Faces libraries are not available for the project, so you may want to give us a steb-by-step instruction of how to reproduce the error
    Frank

  • Use of template using CPT1 for charging an additional cost to the product

    Hello,
    I'm trying to charge an additional cost burden to the cost of my product for every base unit produced. (cost estimate)
    I have created a template using transaction CPT1 with sender as Cost Center / Activity Type in environment 001
    The activity type is measured in EA (Eaches) while we make our product in boxes (Product base unit of measure is 'Boxes') with say 20 Eaches going into a Box
    I have maintained an activity price using transaction KP26 at say $0.55 per Each
    I have assigned this template to my costing sheet , valuation area and overhead key using transaction KTPF
    When I now cost the material for costing lot size of a 1000 boxes, it still charges the product with the activity price per Each ($0.55) instead of multiplying  $0.55*20*1000 = $11,000 for a 1000 boxes
    The formula I have chosen in the template against 'Plan quantity ' is in the attachment enclosed:
    I need help with doing the right thing within the template to make it give a cost burden of $11000 for every 1000 boxes costed (costing lot size)

    Didn't realize that you have to use transaction CPTD to charge template overhead to production orders. That's why it was not working. Now it is posting by reading the confirmed yield. But it is still not converting eaches to boxes using the conversion factor in the material master.
    The formula I'm currently using in the template for actual quantity is as under:
    OrderYieldConfirmed / AltQtyFactorFromMaterial( AlternativeQuantityUnit
    = 'BX', Material = OrderMaterialNumber )
    Please tell me what I need to do to the above formula to make it convert boxes to eaches using conversion factor in the material master?
    A similar formula has worked beautifully for 'cost estimate'
    OrderTotalQuantity / AltQtyFactorFromMaterial( AlternativeQuantityUnit =
    'BX', Material = OrderMaterialNumber )

  • Basic question, how to create rtf template with a given xml file

    Hello guys
    I am new to BI publisher and I am learning how to create rtf templates using given xml fiel definitions by following the bi publisher guide
    The steps I am following is:
    1, create template using template builders, which is downloaded into MS words.
    2, In the empty template, map the xml columns with template field using BI publisher tag
    3, upload the template to BI Publisher as a layout.
    That's all I can understand.
    My question is:
    1,in which above step do I import XML file into template builder (if not bi publisher), how to do so?
    2,After template is created, how to associate this template layout with existing reports in BI Publisher, or is it necessary at all?
    3,In the template content in MS Word template builder, what should I enter other than BI publisher tags for mapping XML field to desired template field
    Or, if my understand of this process is entirely wrong, what's the right process of creating rtf template with a given XML file definition
    Thanks

    If you have a BI Publisher desktop installed, have a look a the demos,.. should answer most of your basic questions.
    (Windows) Start->Programs->Oracle BI Publisher Desktop->Demos
    Invoice Demo - good one for those with E-Business Suite
    Report Demo - Sample using BI Publisher

  • How to find a Transport Request no for Task or Workflow Template

    Hi All,
    Any body tell me.
    How to find a Transport Request No for Task or Workflow Template.
    Thanks,
    Lakhshmi.

    Hi.
    Next to the options already mentioned you can also try transaction SE03.
    Select: Search for objects in Requests/Tasks.
    Next, fill an empty line with the objectnumber you want to search (don't forget the checkbox).
    For workflow tasks use the object type PDTS, for workflow templates use PDWS.
    Kind regards,
    Jasper Blok

  • Create iWeb Templates

    Can anybody tell me how can i create a n iWeb templates?

    You can only be able to create real iweb template by create them in XML file. Here is a brief description: http://11mystics.com/tools/iweb/create-iweb-templates/
    using a blank page (as mentioned) will get you just a blank page (with your layout), nothing spectacular about that.
    but if you want albums, photos, blogs and podcast template... you will need to create template XML file.

  • Corrupt document gets created in document library with document template using createlistitem workflowaction in visual studio workflow for office 365 solution

    Hi,
    My requirement is to create a document library associated to a custom content type with a document template associated. Also I need to create a document based on the template in this document library when a new item is created in another list by taking the
    reference ID of that new Item , I need to create the document with the name appended by ID. I need to do all this deployment using WSP.
    I have created document library with document template associated to content type by following instructions in below stated blog :http://blogs.msdn.com/b/chaks/archive/2011/05/19/deploying-a-document-template-file-in-content-type-in-a-office365-sandboxed-solution.aspx
    This works perfect for me.
    However, there are few observations, when going to Document Library > Library Settings > Advanced Settings > Document Template section - doesnt shows the Edit template link. When tried to look at the value for the document template using view source
    , it is giving me /Lists/MyDocsListInstance/Forms/template.dotx instead of the actual template file uploaded.
    Ignoring the above observation, when I am trying to create a sandbox based workflow in visual studio to create document in document library when new item is created in another list, I provide the ContentTypeID as the ID associated with the document library
    with template. 
    It creates the corrupt document at end of workflow. 
    I have tried using .docx instead of .dotx files for workflow as per solution provided in some of the post but it isnt resolving my issue.
    Any help is much appreciated.
    Regards,
    Krutika

    OK, I am going to throw out a lot of ideas here so hopefully they get you closer to a diagnosis. Hang on :)
    Does it happen to work for some users but not others? If so, try logging in on the "good" computer with the "bad" username. This will tell you if the problem is related to the end-user's system. Also, once the user downloads a document
    successfully can they open and work on it in Word? Also, does the document library have any custom content types associated with it or does it just use 'Document'?
    I notice that there are other folks on the web that have run into this same problem and the similarity seems to be that they are either on SharePoint 2007 or have upgraded from 2007. Did this doc library start out as a 2007 library?
    What you might want to do is this: Make a site collection from scratch in 2013 (or find one that you know was created in 2013). Choose team site (or whatever you want) for the root web and set up the security the same way you have it on the malfunctioning
    library. Now, use windows explorer to copy and paste some of the documents to the new location. Be sure you recreate any needed content types. Now test it from the troubled user's computer.
    I'm thinking there may be something that is different about the library since it was migrated through various versions and updates since 2007. I've sometimes found that there can be problems (especially with user profiles but that's a different story) with
    things that go through this evolution.

  • How to create a template for a Workflow

    I have created a workflow that has couple of dataflows inside it.
    Now, I need to create another 20 workflows which have the similar logic to that of the first workflow, except for couple of changes such as the source file, etc. Instead of creating the whole logic from the scratch for all the workflows, is there any way of using the first workflow as a template & create the 20 work flows quickly? 
    As per our req, i need to have different names corresponding to the different source files that am having.
    If i go with the option of replication of the data flows , i am facing the below issue:
    -> Change in the name of the dataflow/ change in any of the object within the dataflow (eg, changing the source file/ target table within a data flow)is also getting reflected in all the other data flows.
    I am looking out for a way wherein , if we make the change in the workflow/dataflow , it shouldn't change the original(template) workflow.
    A more detailed scenario.:
    I have a work flow, say WF_Microsoft to be created for pulling data from a source file "Microsoft"
    WF_Microsoft has two data flows DF_Microsoft1 -> DF_Microsoft2 (DF_Microsoft1 connected to DF_Microsoft2 )
    DF_Microsoft1 in turn has SourceTable_Microsoft as input & StagingTable_Microsoft as output
    DF_Microsoft2 in turn has StagingTable_Microsoft as input & TargetTable_Microsoft as output with some table comparison & query transformations in between them
    Now, i need to create Workflows for few other source files eg "SAP","Oracle" and so on with the same logic with the difference being that, the source file is different, the output/input within the dataflows are different tables. I am looking out for a solution where in i need not create the dataflows, drag the objects again & again for all the 20 files. But, instead should do it without much effort by just replacing the source & target tables.
    If i replicate, any change in the naming of the dataflow / change in the object is also reflected in the original one as well. But i need the original one to remain same.
    -Thanks,
    Naveen

    I have created a workflow that has couple of dataflows inside it.
    Now, I need to create another 20 workflows which have the similar logic to that of the first workflow, except for couple of changes such as the source file, etc. Instead of creating the whole logic from the scratch for all the workflows, is there any way of using the first workflow as a template & create the 20 work flows quickly? 
    As per our req, i need to have different names corresponding to the different source files that am having.
    If i go with the option of replication of the data flows , i am facing the below issue:
    -> Change in the name of the dataflow/ change in any of the object within the dataflow (eg, changing the source file/ target table within a data flow)is also getting reflected in all the other data flows.
    I am looking out for a way wherein , if we make the change in the workflow/dataflow , it shouldn't change the original(template) workflow.
    A more detailed scenario.:
    I have a work flow, say WF_Microsoft to be created for pulling data from a source file "Microsoft"
    WF_Microsoft has two data flows DF_Microsoft1 -> DF_Microsoft2 (DF_Microsoft1 connected to DF_Microsoft2 )
    DF_Microsoft1 in turn has SourceTable_Microsoft as input & StagingTable_Microsoft as output
    DF_Microsoft2 in turn has StagingTable_Microsoft as input & TargetTable_Microsoft as output with some table comparison & query transformations in between them
    Now, i need to create Workflows for few other source files eg "SAP","Oracle" and so on with the same logic with the difference being that, the source file is different, the output/input within the dataflows are different tables. I am looking out for a solution where in i need not create the dataflows, drag the objects again & again for all the 20 files. But, instead should do it without much effort by just replacing the source & target tables.
    If i replicate, any change in the naming of the dataflow / change in the object is also reflected in the original one as well. But i need the original one to remain same.
    -Thanks,
    Naveen

  • Great acne/scar removal trick + workflow tips for short music vids + creating a "template" in FCPX

    To all fine people of the FCP X community forum:
         I’ve received a tremendous amount of helpful commentary on these boards.  Using FCPX for my projects has really expedited my post production process.  I thought I would show my gratitude by giving a tip I have been using the **** out of.  For any skin imperfections like scars/acne/blemishes etc., i’ve been using the CENSOR tool.  Here’s a before and after, You can see the censor filter applied to her forehead and a separate censor application  with slightly different settings to her right cheek. 
         I thought this might help others who are photographers who like to include videos of their shoots with models but don’t want to deal with After Effects/Motion.  Full short video available here:  http://instagram.com/p/nqdtqzTT7m/
         Unfortunately I wouldn’t be making my entrance into this beloved forum if I wasn’t in search of some advice from those much wiser than I.  I am constantly making these 15 second BTS clips of my models and one of the most changed/switched out/substituted shots in almost every project I do is my first shot and the song selection.   Since I tend to use a lot of cuts even if I change the song last second it isn’t an issue to make a few adjustments between shots (helps that the duration of the video is so short) as long as the song has a fast tempo.  I don’t add my song selection to the primary storyline and connect my video clips due to the fact that usually the song may be swapped out once a model decides she’d prefer something else or if I have a change of heart.  Common sense tells me to avoid this annoyance by just working on my cuts first and waiting until the completion of my edit to add music.  So what i’ve been doing is just working on the video and while editing listen to potential tracks on iTunes or via finder.  But wanted to ask you guys:
    1 - Should I stop adding my audio at the very end as a connected clip and just make add audio directly to my primary storyline and all video that I add subsequently are just “connected clips”?  What is the benefit to this in regards to speed considering how often I am changing my starting and ending clips?  I never did this because I assumed if I don’t want to use the song any more it would be too much of a hassle to add those clips to a new song (seems like i’d have to create a compound clip of everything with the old song disabled).  Any thoughts?
    2 - Am I able to create a “template” for common projects?  For my BTS videos I generally always want my videos to be 23.98 fps, 1080, have 50 pixel margins on the top and bottom, generate a white background and have entire video shrink down to 58% for it to fit within the confines of apps like Instagram or Vine.  It would save a **** of a lot of time if I could just save a template for these projects…
    3 - I would just about KILL to see a few music video workflow options.  I’m a Lynda.com subscriber and don’t see any workflow options, searched Larry David’s tutorials couldn’t find any and there aren’t many options on Youtube.  Ever music video editor I know who works professionally uses Adobe Premiere… I would like to be the first in my circle to use and convince everyone to switch.
    Thanks again for your all of your help everyone, hope my tip helps someone!
    Anthony

    Muito abrigado my friend!  Seriously thanks a million, but I was curious to know about my situation regarding replacing my first shot multiple times... In another words there's a clip already in the storyline which won't allow me to replace edit since it just moves out of the way.  Would you just go back into the browser and add the original selection to the first clip?  Because I kept having to move my connected music and solid I just gave up and would wait until the end to add the music and solid (I add the solid to give the background a different color when I want to create the letterbox effect). 
    I just watched a music video tutorial where someone created a 3 minute solid, made like a hundred cuts with the blade tool and manually dragged each clip from his browser to replace from start for each of those cuts in the solid...
    What is your workflow for music-based edits?  Do you place the song in the primary story line and use the video as connected clips?  Do you use a solid or gap clip and dissect it with cuts and replace the segments with clips? I really hate not being able to add markers to the timeline and must make those marks on a clip/generator/music track of some kind.  Also if you have a project that has the same settings with fps, crop size, solid as a background is there a way to make template so I don't have to do that each and every time?
    Thanks again my friend!!!
    Anthony

  • HCM/OM workflow template - approval for creating positions

    Hi Guys,
    My requirement is to create a custom workflow for the approval process of creating positions. I have the follwing questions:
    1. Is there any workflow template that can be used?
    2. What BO should be used?
    3. On what event should the WF be triggered?
    Many Thanks in advance,
    Cristian

    Please check with these Business objects
    PDOTYPE_S  Position
    PDOTYPE_SH HR Position
    Thanks
    Arghadip

Maybe you are looking for