Technical Articles
SuccessFactors Payslip page navigation
Problem Statement
Preface
A lot of clients implementing SuccessFactors EC Payroll have requirements to navigate to Payslip page from external applications, intranet sites or else from EC home page tile.
Issue
Navigation to payslip page is not in the SuccessFactors standard deep links and also the deep links take user to the home page with personal information (or first block in people profile) displayed.
Alternates available
- Use the standard deep link URL to navigate person to people profile, request them to scroll down to Compensation / Payroll information and click the link to Payslip page
- Try and implement the suggestion on enhancing option # 1 by following this blog post by Dharmin Thakkar
- Bypassing the hardcoded user may come in as a challenge.
Solution
** Update – as of 1H2021 release, we now have a URL link available to navigate to payslip directly without manufacturing URL – https://<hostname>/sf/latestpayperiod
We can manufacture URL to directly navigate to Payslip page within SuccessFactors EC application pointing to the Payslip in EC-Payroll with below steps:
Manufactured URL
https://pmsalesdemo8.successfactors.com/xi/ui/payroll/pages/PayStatement.xhtml?encodedJSONEvent=UGF5IFN0YXRlbWVudA==&userId=Y2dyYW50ZQ%3D%3D&companyId=1710&eou=true
Where :
UGF5IFN0YXRlbWVudA== | “Pay Statement” in Base64 encoded value (can be hardcoded) |
Y2dyYW50ZQ%3D%3D | User ID of Employee (in this case cgrante) in Base64 encoded value and then encoded in HTTP URL format |
1710 | Job Info company code assigned to Employee |
pmsalesdemo8.successfactors.com | SuccessFactors host from base URL – Should be kept dynamic per environment |
Known Issue
There is a known issue wherein if a person is not already logged into SuccessFactors, then this URL redirect takes them to Landing page of SuccessFactors post login.
How to resolve the above known issue:
-
With SAP Cloud Platform extension application
- With SCP app, we have SuccessFactors as IdP
- Create an application which redirects to this URL with window.open(“<manufacturedPayslipURL>“)
- When user logs in, they are authenticated against SuccessFactors and thus Cookie is set in browser
- Redirect to <manufacturedPayslipURL> from SCP is seamless
-
With Customer application
- In case of a customer intranet application, open a tab within browser (possibly a pop-up) to authenticate against SuccessFactors or corporate IdP that SuccessFactors trusts
- Once done Cookies are set in browser, close pop-up and redirect to <manufacturedPayslipURL>
Architecture for SAP Cloud Platform application:
** Please note –
-
This is sample architecture diagram, may vary based on client specific SSO implementations
-
IAS, SSO and SCPI are not prerequisites for this URL redirect to work
Sample Architecture
Conclusion
With above approaches, we can navigate successfully to any Employee’s payslip page.
Payslip page Redirect
If going with option of SAP Cloud platform application, we have tested it with Home page tile and the redirect works like a charm!
A special mention to Ishaan and Vishal for help and testing this manufactured URL with seamless navigation using SCP application.
Thanks,
Former Member
Thank you for the nice blog! There should be something coming in the standard delivery to make pay statement access more convenient - see Planned Q4 2020 Engagement card and quick access to pay statements on the HXM home page of course with the usual delivery disclaimers. Please also notice in the PTP guide What's New in Employee Central Payroll Using Point-to-Point, available now, a direct pay statement option in Payroll Information (People Profile), which does not require payroll results replication in Employee Central.
Hi Aditya,
We are currently using Arrow based pay statement in EC . We followed necessary steps mentioned in Succesfactor P2P guide for displaying payslip using Pay statement direct method . Still we are unable to display the pay slip. Can you suggest how can we migrate from Arrow based pay statement to Pay statement direct method .
Can you also help with the steps , how this pay statement is attached to EC with all net pay details in left side with pay period details . As we are using Arrow based pay statement in EC , we are not getting the net pay and pay period details in left panel.
Ishaan can you please help with the steps you performed for SAP CPI .
Thanks,
Biswajit
** Update – as of 1H2021 release, we now have a URL link available to navigate to payslip directly without manufacturing URL – https://<hostname>/sf/latestpayperiod