I'm new to SharePoint and I'd like to Create a Leave approval Form Application which utilizes the Approval Workflow, Approver as userprofile feild in sharepoint-2010?. Please guide me
http://workflowvalidation.codeplex.com/
you can using this solution, to create a custom validation process.
In your case, you create a Leave List (Creator, start date, final date...), you associate the workflow (Validation Workflow) to this list. And you create your custom process, the validator can defined in the column list or in the user profile service.
example: The Manager of the author.
if you have any problem contact me.
Related
I have 2 applications on the same Tenant.
I can configure an email template for the "Set Password" workflow on:
an Application Level
the Tenant level
When I register a new user using the UI, as far as I understood it will only be able to send the email configured on the tenant level since it won't know anything about which application the user can see until the next step when I add the registrations.
If I create a user and add registration to it right away (on the same step) then this takes the Template configured on the application level.
My questions are:
Can we do something like this through the UI interface too? My applications have a different user base (some have accounts on both) and it would be nice to be able to send them one email or the other.
Or is this only possible through the API?
If I register a user with both applications (through the API) which email do they get?
Thanks for the help!
Can we do something like this through the UI interface too?
This is not currently possible. Creating the User, and creating a User Registration are two separate steps. As you correctly stated, when creating the user in the UI, there is no context yet for an application. For this reason, the user will receive the template configured at the tenant level.
Or is this only possible through the API?
Correct. You must use the Create "User + Registration" API to do this in one step to use the application template for setup password.
If I register a user with both applications (through the API) which email do they get?
When using the API to Create "User + Registration" you can only register for one application at a time. The email is only sent during the User Create step, so if you register for a second application, the user will already exist and thus will not receive a second email.
I changed the user store to our custom oracle db. so, there are some fields that should be added to user profile when set the user profile of a user. How can I add some new properties to user profile GUI and map those to related fields in um_user table? thanks for your response!
you may want to have a look in the administrative console ( /carbon ) for the claim management.
Locate claims in the claim dialect http://wso2.org/claims, there you can define additional user attributes and their attribute names (field name in the underlying userstore).
good luck
I would like to know how I can get users login Access information and their login frequency from Hybris db. Is it possible to know the table/s where this kind of data is stored?
Thanks in advance,
AC
The only available information would be the last login date, if you want to keep more information about the login frequency, you will need to :
Update the User or Employee model to add something like a collection of Date
Customize the 'CockpitAuthenticationProvider' class to populate your new attribute whenever a cockpit user successfully login
Adding to #Benoit answer, you can write your custom logic in StorefrontAuthenticationSuccessHandler & LoginAuthenticationFailureHandler (based on success or failure) to save newly added attributes in User/Employee model.
I have three users (A, B and C) and set workflow for items.
The workflow process is perfectly working as I expected.
In this case, I'd like to set workflow only for A user and other users (B and C) will not use any workflow process even the process was already assigned into content items.
So, A user will follow the process like "submit", "approval" and "publish".
B and C users will not use workflow and they are not required, just change and publish.
How can I do this??? I guess I need to update workflow permission in security??
You'll have to write some custom code to do this as you can't skip the workflow on an item.
Instead you can write some code to hook into an event - on save seems like a good option. you can check:
if the item has workflow
If the user had a specific role to skip workflow (users b and c)
If Workflow is in the correct state
On these conditions you can then programmatically action the workflow to the next state or set the workflow field to approved.
Some great sample code from Cognifide here on actioning or updating the workflow on an item programmatically
https://www.cognifide.com/blogs/sitecore/changing-workflow-state-of-sitecore-items-programmatically/
There's also an example here of somebody setting up a skip approval action to push the items workflow to the final state.
How to programmatically approve a content item in Sitecore
I'd advise you to be careful with skipping workflow as content can easily end up being approved accidentally if the power user edits editor's content. It can be annoying for some users to keep pressing submit and approve all the time but it is a good fail safe.
Another thing you could do is create a custom workflow action after the draft state to update the workflow to the final state when a new item is created in draft by users b and c.
What you can do is use a AutoSubmitAction that will be allowed only for Power Editor role (or whatever role are users B and C assigned to) and that will change the state of edited item to the final state of workflow every time the item is saved. This action should be added under the initial state of your workflow (under __Save command).
Obviously the workflow is still there but users B and C don't have to submit or approve.
No coding is required but you need to remember that workflow is a powerful tool and skipping it can be dangerous if your power editors are not careful.
I am working on a Titanium Alloy project where in I am creating custom objects using ACS. I also have different users in the Users ACS. I wish to associate a particular custom object to a particular logged in user.
For example, If user A is logged in the custom object created by that user should be associated to user A. Same for user B and so on. How do I create this association? Currently my Custom objects get created but they are not associated to the logged in user.
After a little discussion, I realised I should add my scenario too.
My scenario is, a user changes a few settings using the toggle switch. This information should be stored for a user and later on push notification for selected settings should be sent to the user.
Any help in this regard is greatly appreciated.
Regards,
Shreerang
So i think you should store custom object in database with its user name so whenever you want you can get back with user's name.