Create SiteCollection and assign Property to be used in onet.xml

Hi,
I need to create a SiteCollection and I want o assign during a creation a propertybag value or something similar that can be used from SiteFeatures that fire during processing of the onet.XML.
any idea?
Sven

Hi,
You can achieve this using SharePoint Feature Stapling feature.  You can create your custom property using Feature stapling feature and attached the feature to the site template.
Whenever you create a site collection, there will be custom property will be available.  You can set this property value using any one of the following options.
PowerShell
CSOM
JavaScript
Server-side code.
Or use the CodePlex solution to set the property bag value.  The following is the link for codeplex solution
SharePoint Property Bag Settings 2013
The following two links will be helpful for your similar solution
SharePoint Feature Stapling: Create the Feature
SharePoint Feature Stapling: Staple the Feature
Please mark it answered, if your problem resolved or helpful.

Similar Messages

  • Need a help to create user and assign BP to it

    Hi,
    I have requirement to create Users (like SU01) in CRM and for that users need to create BP with role EMPLOYEE and assign BP to that USER.
    Can anybody please help on which Function Module I need to use to create user and assign BP to it.
    Thanks in advance..
    Sushant

    Hi,
    Many post post are there for your query in SDN search if my below shown link is not helpful.
    Hope the below will help you.
    Users Created ...
    Cheers!!
    VEnk@

  • How to create groups and assign users thru program

    Hi,
    I am planning to create groups by program and assign users to them based on some condition.Once users are assigned to those groups we need to change the Language value for those users in User profile
    We are using Central User Administration.
    Please let me know the solution
    Thanks
    Bala Duvvuri

    probably you can use this code to create a group
    IGroupFactory groupFact = UMFactory.getGroupFactory();  
    IGroup group = groupFact.newGroup(wdContext.currentContextElement().getGroup()); 
       group.commit();
    for this required com.sap.security.api.jar

  • HOW TO CREATE ROLE AND ASSIGN TO USER

    Dear all
    1- Create ROLE data_entry
    2- Now open the Form Builder --> open Mennu.mmb --> F4,it open the property pallete --> Set use secturity option
    YES and in Module Role option set Roles --> form_entry
    5- Press F3 (Come back in Navigator Pane) then double click on Mennu, it open Mennu which is attached Forms then
    double click on that one Form which attach Role with it --> click on Item Role --> and attach the Role
    6- Go start Mennu --> Oracle Form6i-Admin --> Build after this it will ask
    ‘Enter System Passwors’ then Give the Local Password.
    'Enter database connection ( e.g. t:node:SID) [LOCAL] ' Give ORCL ( but me confused what should i give over
    here)
    7- Create User DEO Identified By DEO
    8- Grant DBA to DEO
    9- Grant data_entry to DEO
    When i run my application and get login by DEO user then i receive this Error:
    FRM-10247: No activate items in root menu of application.
    please let me know where i am making mistake
    Thanks in advance
    Regards,

    Hi,
    Just check your second point.
    - Now open the Form Builder --> open Mennu.mmb --> F4,it open the property pallete --> Set use secturity option
    YES and in Module Role option set Roles --> form_entryHere, you are using "form_entry" role to the menu but you've granted data_entry role to the user.
    Hence, at run time forms is expecting user with form_entry role, which it's not getting.
    Hope it helps.
    Please mark answer as helpful / correct, if it helps you
    Navnit

  • Need a script to Create Users and assign Responsibilty

    Hi,
    EBS R12
    DB 10.0.2.4
    I need to create 100 application users and assign a responsibilty with them.I do not want to create a single user everytime using sysadmin responsibilty.Give some idea about it.
    Thanks

    Use FND_USER_PKG API.
    Please see old threads for similar discussion -- http://forums.oracle.com/forums/search.jspa?threadID=&q=FND_USER_PKG&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • Best way to create tasks and assign to sharepoint groups

    Hi everyone, I have a custom list which contains newsletter info that is to be seen by around 400 groups (they are stores) and then I need them to mark each list item as 'completed'
    I have been trying to figure out the best way to do this and decided to keep the custom list and somehow link it to a task for each item in the list. We have nintex so was thinking of creating a workflow to create a separate task for each group (store) so
    they can mark it as completed.
    Is this the best way to go about it or am I completely off track?
    Basically all I need is a list which contains around 30 items and around 400 groups (stores) which contain users (store staff) to be able to mark items on the list as completed so it recognises that each store has completed each task.
    Thanks

    Hi  ,
    According to your description, you want to find the best way for creating tasks for 30 list items and assigning the task to around 400 groups.
    For the workflow, it is heavy  that  you need to create around 12000 (30*400) tasks .  In my opinion, the best way is to do with a custom timer job. For more information, you can refer to the
    blog:
    http://www.splessons.com/2013/12/create-a-timer-job-in-sharepoint-2013/
    Thanks,
    Eric
    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]
    Eric Tao
    TechNet Community Support

  • ORACLE.FDK.ServerError while creating document and assigning category

    Hi,
    I try tro create a new Document in Content Services and assigning an existing category
    here is the code snippet:
    public static Item createDocumentWithCategory(Item parent, Item category)
    throws FdkException, RemoteException
    // get the Manager instances
    FileManager fm =s_WsCon.getFileManager();
    System.out.println("Ok document");
    RechercheCategorie categorie=RechercheCategorie();
    categorie.catValeur2();
    Item cat=categorie.getCat();
    Item workspace =fm.resolvePath("/solaria/E-TOP2", null);
    System.out.println("id dans create document:"+cat.getId()+"workspace name:=
    "+workspace.getName()+ "workspaceid:"+workspace.getId());
    // create Category definition for category instance
    NamedValue[] categoryDefs =WsUtility.newNamedValueArray(new Object[]=
    { Options.CATEGORY_ID, new Long(cat.getId()) }/*,
    { Options.CATEGORY_DEFINITION_ATTRIBUTES,
    WsUtility.newNamedValueArray(new Object[][] {
    { "CUSTOM_Attribute", "Value One" } }) }*/
    System.out.println("Ok document");
    // create document specifying category definition
    Item newDoc =fm.createDocument(
    WsUtility.newNamedValueArray(new Object[][] {
    { Attributes.NAME, "MyDoc41" },
    { Options.CATEGORY_DEFINITION, categoryDefs },
    { Options.DESTFOLDER, new Long(workspace.getId()) } }), null, null);
    System.out.println("Ok document2");
    return newDoc;
    It throws an Exception essage d'erreur:
    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:=
    faultString: ORACLE.FDK.UnexpectedError:ORACLE.FDK.ServerError
    faultActor:=
    faultNode:=
    faultDetail:=
         {http://xmlns.oracle.com/content/ws}fault:<detailedErrorCode xsi:type="x=
    sd:string">ORACLE.FDK.ServerError</detailedErrorCode><errorCode xsi:type=
    "xsd:string">ORACLE.FDK.UnexpectedError</errorCode><exceptionEntries xsi:ty=
    pe="ns1:ArrayOfFdkExceptionEntry" xsi:nil="true"/><info xsi:type="ns1=
    :ArrayOfNamedValue" xsi:nil="true"/><serverStackTraceId xsi:type="xsd:s=
    tring">139-1170838513360</serverStackTraceId>
    What is wrong with the code?
    Please advise
    Jo

    The stack trace is incomplete. Please post the complete exception stack trace.
    regards,
    -sancho

  • Create users and assigning them security on the Entity dimension

    Hi All,
    I’m working with Hyperion ESSBASE 11.1.1.3 and Hyperion Planning 11.1.1.3 and I have a problem related to create new users (without admin permissions) and assigning them security on the Entity dimension.
    When I access with these users to a Dataform in Planning appears these message:
    “Security and/or filtering has resulted in a required dimension not being represented on this data form”
    I have followed these steps:
    - I have created new users (Native Directory) and provision them against essbase and the planning application in Shared Services.
    - I have expanded the essbase server > security > refresh security from shared services > all users.
    - I have assigned security roles in all members of Entity dimension in Planning.
    - I have refreshed database and security filters in Planning.
    Please help
    Thanks a lot in advance

    Hi,
    You will have to apply security to all the standard dimensions and not just entity, so that will be account, entity, scenario and version.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Create folio and add content to it using CIS 11g

    Hello,
    How should I create a folio and add content to it using CIS 11g? tried following code but it fails with error code
    Caused By: intradoc.data.DataException: !csGetFileNeedsParameter,Latest
    ISCSAdministrativeAPI adminAPI =
    application.getUCPMAPI().getActiveAPI().getAdministrativeAPI();
    Map arguments = new HashMap();
    arguments.put("NumChanges", "1");
    arguments.put("change0", "1607:addContent:1F93-3807-DFB3-4BDF-8F63");
    arguments.put("RevisionSelectionMethod", "Latest");
    arguments.put("change_data0", "dID:410");
    ISCSServerResponse serverResp =
    adminAPI.executeIDCService(context, "UPDATE_FOLIO", arguments);
    Any help is appreciated. Thanks.

    If you only use dID, you need to use: putLocal("RevisionSelectionMethod", "Specific")
    I never got this working with strictly dID. Once I fed it dDocName and then used the below it got rid of the error:
    putLocal("RevisionSelectionMethod", "Latest")
    Good luck!

  • How to Create, Edit, and delet Alerts in sharepoint using COM or REST API

    I need to create,Delete and  Alerts using Client object model or REST API , I know It's available on server objetc model , but in client side how do it , 
    Anu ideas 

    Hi,
    According to your description, my understanding is that you want to create, delete and edit SharePoint alerts using Client Object Model or Rest API.
    In SharePoint Client Object Model, there is very little that you can achieve when it comes to alerts.
    For changing alerts, there is a ChangeAlert class:
    change alert class
    For Deleting alerts, you can call deletealert web service:
    DeleteAlerts
    For creating new alerts, it seems no such API support this, a workaround is call the new alert form "SubNew.aspx" using JavaScript to achieve it.
    More information:
    http://www.learningsharepoint.com/2013/09/17/client-object-model-doesnt-support-creating-sharepoint-2013-alerts/
    Thanks
    Best Regards,
    Jerry Guo
    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]

  • OLE - Creating header and footer in Word document using abap

    Hi All,
    I'm using OLE to create a WORD document from abap.
    I need to insert a logo in the header and a footer text.
    Does any one know how to insert a header/footer with abap ole ?
    I tried to insert the logo as picture with:
    call method of o_inlineshapes 'AddPicture' = o_logo
      exporting
      #1 = 'C:\logo3.jpg'.
    but I can't put it in the place I want..
    thanks,
    Michal

    call method of LOBJ_MS_WORD 'ActiveWindow' = w_activewindow.
    call method of lobj_activewindow 'ActivePane' = w_activepane.
    call method of lobj_activepane 'View' = w_activeview.
    SET PROPERTY OF w_activeview 'SeekView' = '9'.   " header view.
    " This will set the view to the header view. Whatever you write here
    will go to the header.
    Get PROPERTY OF lobj_ms_word 'Selection' = w_selection.
    CALL METHOD OF w_selection 'TypeText'exporting
      #1 = 'Rahul Anand'.
    "Now set the view again to the main doc view.
       SET PROPERTY OF w_activeview 'SeekView' = '0'.
    " Now write your main doc code .
    " For footer the view is '10'.
    call method of LOBJ_MS_WORD 'ActiveWindow' = w_activewindow.
    call method of lobj_activewindow 'ActivePane' = w_activepane.
    call method of lobj_activepane 'View' = w_activeview.
    SET PROPERTY OF w_activeview 'SeekView' = '9'.   " header view.
    " This will set the view to the header view. Whatever you write here
    will go to the header.
    Get PROPERTY OF lobj_ms_word 'Selection' = w_selection.
    CALL METHOD OF w_selection 'TypeText'exporting
      #1 = 'Rahul Anand'.
    "Now set the view again to the main doc view.
       SET PROPERTY OF w_activeview 'SeekView' = '0'.
    " Now write your main doc code .
    " For footer the view is '10'.

  • Create user and assign role in CUA context

    Hi,
    i'm in CUA context ; in ABAP, when i use the FM BAPI_USER_CREATE1 the new user is well created in all system now i want to assign new roles to this user. Which FM can i use and especially can i assign role to user in a client system ?
    Thanks for help.
    Regards

    Hi,
    Please check this BAPI.
    BAPI_JOBROLE_CLONE
    BAPI_USER_ACTGROUPS_ASSIGN
    Regards,
    Ferry Lianto

  • GOS - Create URL and assign to a material

    Hi,
    I am trying to develop a prorgam to assign an URL to a material using GOS. I have tried to use the function module BDS_BUSINESSDOCUMENT_CREA_URL but it is not working.
    I have come accross a program which does something similar to an invoice.  I have copied this logic which uses the method cl_binary_relation=>create_link but it is still not working.
    I can see that the available business objects for a material are: -
    BUS1001006
    BUS1001
    MDMMARA
    I have tried all three still without success.
    Has anybody done anything similar and can let me know what I may be doing wrong.

    Would be nice if you share your fix.
    Cheers

  • Creation of Campaign Id and assign Target Group to it.

    Hi all,
    I am facing a problem in creating a Campaign Id. This is the first time i am working on CRM Marketing Campaign, and i dont know the process of creating a Campaign id for a Target Group created for BP's. Please do help me in providing me any program or link where i can find the sample programs for creation of campaign id, Campaign Element, Profile Set, Target Group, Assigning BP's to Target Group.. I am presently using the below mentioned function modules/BAPI's for creation of Profile Set, Target Group etc.,
    For Profile Set Creation:                                         BAPI_PROFILESET_CREATE
    For Target Group Creation:                                    BAPI_TARGETGROUP_CREATE
    For Assigning Target Group to Campaign:             MKTPL_TGGR_ASSIGN_CREATE
    for Campaign Element:                                            MKT_ELEMENT_CREATE
    Please provide me complete program to explain the above.
    Thanks in Advance,
    Nagesh Thanneeru.

    hi,
    Target group is a group of BP, like a BP list.  It's a kind of master data which can be used in business transaction.
    And profile set is a base of target group, just like Product Hierachy and Product category.  Each target group should belong to a profile set. So create the profile set, before you create target group.
    Campaign is a kind of Marketing element of CRM Marketing.  In campaign, it need the BP or BP group or Target Group as its campaign objectives. Just like Customer of Sales Order, Vendor of Purchase order.
    Campaign can be assigned several target groups or BP or BP groups in it.
    So if you want to create campaign and assign target group to it, the steps is:
    1.  create a profile set  by BAPI_PROFILESET_CREATE
    2. create target group by BAPI_TARGETGROUP_CREATE, in this calling, you will use the profile set created before.
    3. create campaign by MKT_ELEMENT_CREATE
    4. assign the target group to your campaign, by MKTPL_TGGR_ASSIGN_CREATEl, the target group comes from step 2, the campaign comes from step 3

  • While creation of a equipment and assignment of personnel number

    Hi
    I have activated partner function to the Equipment catagery.
    While creating equipment using T.code IE01,  I am assigning personnel number to the person responsible partnerfunction.
    After that personnel number getting defaulted to operator field as per config setting.
    I can create equipment and assign person responsible succussfully.
    But at the time of assignment of personnel number with partner function person responsible,  I am getting information messege always like
                     " No customer master record exists for customer 10003511"
    I would request you please suggest how  to "delink the above message" while creation of a new equipment and assigning the personnel number.
    Thanks & Regards
    CHSR

    Hello
    Please check the personal Number is active or exists in HR Master with its validity.Use TC for checking PA20 for checking the same.
    Regards,
    Rakesh

Maybe you are looking for

  • How to cancel/close Incomplete PO

    In oracle purchasing,can i cancel/close/disable a PO which is now in Incomplete status? and how? The PO cannot be deleted due to audit purpose. Also, the po must be cancelled to free the requisition. Generally, approved pos are elligible for cancella

  • Process Empty file Exception

    hi guys, i faced a weired problem, i got this error in the monitoring it's about processing empty files, i have to process empty files but without having this exception   <SAP:Stack>com.sap.aii.utilxi.misc.api.BaseRuntimeException thrown during appli

  • Installing Flash Player plz help

    Im on a macbook pro and when i try to install flash player it says i need to type in my password but its not my normal password so i can't  type it to do the update i think its called a admins password but i do not know the admins password? plz help

  • After i down load the upgrade for my ipad the youtube app disapear

    how can i get back in my ipad the youtube app? ty

  • Problem upgrading APPS after installing Yosemite

    Since I upgraded my Mac from Mountain Lion to Yosemite I have big problems: System slowing down and comunication with the App Store is corrupted. No upgrading of Apps. I cannot use IPhoto and IMovie. The Systems information: „No upgrading fort this A