Posts

Showing posts from November, 2020

Microsoft Graph API integration from Pega V8.x

Image
Brief idea on MS Graph API: Microsoft Graph is a Microsoft developer platform that connects multiple services and devices. Initially released in 2015, the Microsoft Graph builds on Microsoft 365 APIs and allows developers to integrate their services with Microsoft products, including Windows, Microsoft 365, and Azure. The Microsoft Graph API offers a single endpoint, https://graph.microsoft.com, to provide access to rich, people-centric data and insights exposed as resources of Microsoft 365 services. Microsoft Graph exposes REST APIs and client libraries to access data on most of the Microsoft cloud services.  The below diagram gives a high level idea. The Microsoft Graph explorer is a tool that lets you make requests and see responses against the Microsoft Graph. To access this tool, we need to have access in Microsoft Azure Portal. I have free trial access with limited features from Azure. Here is the portal URL to get the access: https://portal.azure.com/  Here is the...

Convert Word document to PDF using opensource: docx4j API in Pega V8.x

Image
 To convert a word document(.docx) into a PDF document, we can use the opensource:docx4j. In order to work on this API, we need to import 42 jar files in Pega V8.x. The list of all jars are given below and we can use Import wizard in Dev Studio to import all these jar files and store the data into the corresponding table:PR_ENGINECLASSES. After importing them, we need to recycle/bounce the server after clearing the cache. All the below jars can be searched from google and download them into your local folder. Here are the next steps to follow in Pega to experiment on a sample word doc to convert into PDF. 1) Create DSS rules for capturing the Word Doc and PDF Doc files path. I took the path as C:\Users\urspv\Documents\Pega\V85\PRPCPersonalEdition\tomcat\temp\Misc and kept a sample word doc like Test.docx. After running the DataTransform, we can see the new Test.pdf in the same path. 2) Create a Pega function with the below java code. The function has 2 parameters like WordDoc,...

REST Service API to create a Pega case and attach a file to the case using SOAP UI

Image
 To perform this small exercise, we need the below prerequisites. 1) SOAP UI tool 2) Pega V8.4 case type in a working PE In this context, I have created a simple case type: Leave Request where there are 3 stages to capture leave request info for an employee and resolve the case by approve/reject. For more details about the case type design and the sample case UI screen. Create a REST-Service instance to create a case and the logic to capture the file from SOAP UI request. Below is the API service call from SOAP UI. Select the Basic authentication, add an attachment from the Attachment section. Select the Media Type as "multipart/form-data". Method should be POST. Below is the case ID:LR-6 with the attached image file after successful execution. References: 1) Pega developer help 2) Pega community site

How did I prepare for AZ-900 exam?

Image
 The basic fundamentals from Azure cloud is covered in this AZ-900 certification. Though the topics from the blueprint given by Microsoft looks easy but the questions in the exam are not that easy to answer. There were 33 questions asked in my exam and the pass mark should be 70%. From the exam, there were multiple choice, multi select, practical oriented questions given to test the knowledge.  Here are the topics and the way of my preparation to pass the exam with 820/1000. Microsoft Learn Modules Aligned to AZ-900 Skill Measured Microsoft Learn Module 1. Understand Cloud Concepts                https://docs.microsoft.com/en-gb/learn/modules/principles-cloud-computing/ 2. Understand Core Azure Services https://docs.microsoft.com/en-gb/learn/modules/welcome-to-azure/ https://docs.microsoft.com/en-gb/learn/modules/explore-azure-infrastruct...