<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[SAP Commerce Cloud - Medium]]></title>
        <description><![CDATA[SAP Commerce Cloud experts share their knowledge and skills to get started or learn something new. - Medium]]></description>
        <link>https://medium.com/sap-commerce-cloud?source=rss----bd41a29fd17---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>SAP Commerce Cloud - Medium</title>
            <link>https://medium.com/sap-commerce-cloud?source=rss----bd41a29fd17---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 22:29:53 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/sap-commerce-cloud" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Enable SSO via Open SAML in SAP Commerce]]></title>
            <link>https://medium.com/sap-commerce-cloud/enable-sso-via-open-saml-in-sap-commerce-158182f6bb73?source=rss----bd41a29fd17---4</link>
            <guid isPermaLink="false">https://medium.com/p/158182f6bb73</guid>
            <category><![CDATA[sap-commerce]]></category>
            <category><![CDATA[saml2-sso]]></category>
            <category><![CDATA[aml]]></category>
            <category><![CDATA[sapcommercecloud]]></category>
            <category><![CDATA[saml-sso]]></category>
            <dc:creator><![CDATA[Aswin Raghuraman]]></dc:creator>
            <pubDate>Fri, 07 Feb 2025 03:01:24 GMT</pubDate>
            <atom:updated>2025-02-14T03:53:50.373Z</atom:updated>
            <content:encoded><![CDATA[<p>In this document, you will learn how to configure and enable <strong>Single Sign-On (SSO)</strong> for your <strong>SAP Commerce Backoffice</strong> application.</p><h3>Prerequisites:</h3><p>Before proceeding with the configuration, please note that this process has dependencies on the infrastructure, specifically the <strong>Identity Provider (IDP)</strong>. For instance, if you’re using <strong>Azure AD</strong>, you will need to:</p><ol><li><strong>Register the SAP Commerce Backoffice application</strong> in Azure AD.</li><li><strong>Generate the IDP metadata</strong> that will be used for the SSO configuration.</li></ol><p>Once the SAP Commerce Backoffice application is registered and the IDP metadata is generated, you can begin configuring the SSO integration.</p><h3>Key Steps in the Process:</h3><ol><li>Register SAP Commerce Backoffice in IDP (e.g., Azure AD)</li><li>Generate IDP Metadata</li><li>Import IDP Metadata into SAP Commerce</li><li>Configure Group Mappings</li><li>Test and Validate</li></ol><p>By following these steps, you will be able to enable and configure SSO for your SAP Commerce Backoffice application. This integration will allow users to authenticate with their existing credentials, simplifying the login process and enhancing security.</p><h3>Understanding SSO Terminologies</h3><p>Before we dive into the specifics, it’s important to understand the key terminologies related to SSO (Single Sign-On):</p><ul><li><strong>IDP (Identity Provider)</strong>: This is the service that manages user identities and provides authentication services. Examples include <strong>Azure AD</strong>, <strong>Okta</strong>, etc.</li><li><strong>SP (Service Provider)</strong>: This is the application or service where users want to log in via SSO. In this case, <strong>SAP Commerce</strong> or any other application with SSO enabled.</li></ul><h4>Types of SSO</h4><p>SSO can be either <strong>IDP Initiated</strong> or <strong>SP Initiated</strong>:</p><p><strong>IDP Initiated</strong>:</p><ul><li>In this case, the user first logs in to the organization’s dashboard page (e.g., Azure AD landing page). Then, they click on the app to sign in directly to the application. The user must have the required permissions enabled in the AD groups for the app.</li></ul><p><strong>SP Initiated</strong>:</p><ul><li>Here, the user starts by logging into the application using the SSO button. This redirects them to the IDP login page. After the user successfully logs in, the IDP verifies the user’s permissions and redirects them back to the application. If all the checks are in place, the user is logged into the application.</li></ul><p>In this document, we will focus on the <strong>SP Initiated</strong> login for <strong>SAP Commerce</strong>. However, both methods are similar in configuration and process.</p><h3>User Groups and Group Mapping:</h3><p><strong>User Groups in IDP</strong>:</p><ul><li>Specific user groups should be created in the IDP (e.g., Azure AD) to grant access to the SAP Commerce application.</li><li>Users should be assigned to these user groups to allow them to access the application.</li></ul><p><strong>Information Passed During SSO</strong>:</p><p>When the user logs in via SSO, the following details will be passed from the IDP to SAP Commerce:</p><ul><li><strong>Username</strong></li><li><strong>First Name</strong></li><li><strong>Last Name</strong></li><li><strong>Assigned Groups</strong> in the IDP</li></ul><p><strong>Mapping IDP Groups to SAP Commerce Groups</strong>:</p><ul><li>In the last step, we will map the groups from the IDP to the corresponding groups in SAP Commerce, where the permissions are configured. This ensures that users in those groups are granted the appropriate permissions within the SAP Commerce application.</li></ul><p>By following these steps, we ensure a smooth SSO integration between the IDP and SAP Commerce, providing users with seamless access to the application based on their group assignments.</p><p>Great! Now that we’ve covered the basics, let’s jump straight into the detailed steps for configuring and enabling SSO for SAP Commerce Backoffice.</p><p><strong>Generation of metadata xml in SAP commerce</strong></p><p>The metadata XML should be generated on our side and then sent to the IDP team. They will need to import this file into the registered app on their end.</p><p>To generate the metadata XML, follow these steps:</p><p>Add the Required Properties to Local Properties.</p><ul><li>Open your <strong>local.properties</strong> file in your SAP Commerce project.</li><li>Add the following properties, replacing localhost:9002 with your environment’s actual application URL. Make sure to update any environment-specific details like URLs, entity IDs, and key aliases.</li></ul><pre>## Add the below properties in local.properties<br>sso.legacy.endpoints.enabled=false <br>sso.cookie.name=LoginToken<br>sso.database.usergroup.mapping=true<br><br>##SSO configuration starts<br>#SSO Claims - Update the value as per the name configured in the IDP<br>sso.usergroup.attribute.key=http://schemas.xmlsoap.org/ws/2005/05/identity/claims/user group<br>sso.userid.attribute.key=http://schemas.xmlsoap.org/ws/2005/05/identity/claims/Name<br>sso.firstname.attribute.key=http://schemas.xmlsoap.org/ws/2005/05/identity/claims/First Name<br>sso.lastname.attribute.key=http://schemas.xmlsoap.org/ws/2005/05/identity/claims/Last Name<br><br>sso.keystore.location=file:/opt/hybris/config/security/samlKeystore.jks<br>sso.keystore.password=hybris<br><br>## the privatekey alias should not be same as keystore alias given <br>## while generating the keystore<br>sso.keystore.privatekey.alias=dev<br>sso.keystore.privatekey.password=hybris<br>sso.keystore.default.certificate.alias=dev<br><br>sso.entity.id=urn:ssoextension:hybris:dev<br><br>sso.metadata.location=file:/opt/hybris/config/security/metadata.txt<br>sso.redirect.url=https://localhost:9002/<br>sso.entity.baseurl=https://localhost:9002/samlsinglesignon<br><br>## Only if you have set sso legacy as false<br>sso.relyingPartyRegistration.registrationId=dev<br></pre><p>To configure SSO with the newer version of the <strong>SAML Single Sign-On</strong> in <strong>SAP Commerce 2211</strong>, follow these steps:</p><h4>Legacy vs. Newer SAML Endpoints</h4><p>By default, in 2211 SAP Commerce version the samlsinglesignon extension exposes the following legacy endpoints. However its recommended to use the newer SAML version.</p><ul><li><a href="https://localhost:9002/samlsinglesignon/saml/SSO">https://localhost:9002/samlsinglesignon/saml/SSO</a> — the assertion consumer service endpoint</li><li><a href="https://localhost:9002/samlsinglesignon/saml/SingleLogout">https://localhost:9002/samlsinglesignon/saml/SingleLogout</a> — the SLO endpoint</li><li><a href="https://localhost:9002/samlsinglesignon/saml/metadata">https://localhost:9002/samlsinglesignon/saml/metadata</a> — the metadata generation endpoint</li></ul><p>If you want to use the default endpoints shipped with the spring-security-saml2-service-provider library, then</p><p>The default endpoints are:</p><ol><li><a href="https://localhost:9002/samlsinglesignon/login/saml2/sso/%7BregistrationId%7D">https://localhost:9002/samlsinglesignon/login/saml2/sso/{registrationId}</a> — the assertion consumer service endpoint</li><li><a href="https://localhost:9002/samlsinglesignon/logout/saml2/slo/">https://localhost:9002/samlsinglesignon/logout/saml2/slo/</a> — the SLO endpoint</li><li><a href="https://localhost:9002/samlsinglesignon/saml2/service-provider-metadata/%7BregistrationId%7D">https://localhost:9002/samlsinglesignon/saml2/service-provider-metadata/{registrationId}</a> — the metadata generation endpoint</li></ol><p>Set the {registrationId} parameter using the sso.relyingPartyRegistration.registrationId property value for eg., dev.</p><p>The system uses the value of this property to create the RelyingPartyRegistration object. The value of this property can’t be empty. Its default value is registrationId. Once you get the property the new registration id will be used in the url eg. dev</p><p>To generate the SP Metadata xml, call the below url</p><pre>https://localhost:9002/samlsinglesignon/saml2/service-provider-metadata/{registrationId}</pre><p>Replace {registrationId} with the actual value you&#39;ve set (e.g., dev )</p><p>Example:</p><pre>https://localhost:9002/samlsinglesignon/saml2/service-provider-metadata/dev</pre><p>This URL will trigger the download of a file named:</p><p>It will download saml-<a href="https://localhost:9002/samlsinglesignon/saml2/service-provider-metadata/%7BregistrationId%7D">{registrationId}</a>-metadata.xml</p><p>Example:</p><pre>saml-dev-metadata.xml</pre><p><strong>Send the Metadata to the IDP Team</strong></p><ul><li>Download the generated <strong>SP Metadata XML</strong> file and send it to the <strong>IDP team</strong>.</li><li>The IDP team will use this file to configure the application on their end, enabling successful SSO integration.</li></ul><p>This process ensures that the SAP Commerce system is configured to use the newer, more secure SAML endpoints, while maintaining compatibility with your IDP’s SSO configuration.</p><p><strong>Generate the SAML Keystore</strong></p><p>The IDP team will provide the IDP metadata (metadata.xml) and certificate (IDPDEV.cer). We need to import both the IDP metadata and the keystore into our SAP Commerce cloud portal.</p><blockquote>Use the same values configured in the local properties.</blockquote><pre>keytool -genkey -keyalg RSA -alias dev -keystore samlKeystore.jks -validity 3560 -keysize 2048<br><br>alias = sso.keystore.default.certificate.alias<br>password =  sso.keystore.password property</pre><p>It will prompt the keystore password and details. Once you confirm the details, it will get imported.</p><p>Next step is to import the IDP certificate in the keystore</p><pre>keytool -importcert -alias hybris -file IDP.cer -keystore samlKeystore.jks<br><br>alias - sso.keystore.privatekey.alias in local properties<br>alias : should be not same as keystore alias use instead as different alias</pre><p>When prompted, Trust this certificate? [no]: <strong>yes</strong></p><p>If all good you will get the message — Certificate was added to keystore</p><p>To verify the keystore, run the below command. It should list both keystore and trustedentry.</p><pre>keytool -list -V -storepass hybris -keystore samlKeystore.jks</pre><p><strong>Import of IDP metadata and certificate in SAP Commerce</strong></p><p><strong>Login to SAP CCV2 portal</strong> and navigate to the <strong>Security</strong> section.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I0ENH46sj3D9VzUmDzVdEQ.png" /></figure><p><strong>Rename </strong><strong>metadata.xml to </strong><strong>metadata.txt</strong>, and upload both the <strong>metadata.txt</strong> and <strong>samlkeystore.jks</strong> files.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l_rjBmsbw-GuSQZ4hsJMlg.png" /></figure><p><strong>Assign these files</strong> under the relevant environment (e.g., D1).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/419/1*yt1x9ExcvokVmB7nH2baIw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/747/1*_AhMfZypVhgVB4fBPytRMg.png" /></figure><p>Click on <strong>Edit</strong> to modify the environment configuration.</p><p>Add the metadata.txt and samlkeystore.jks files that you imported earlier in security files. The files you upload — are automatically placed in the following folder in server nodes: /opt/hybris/config/security. That’s how, the folder path configured in local properties will work.</p><pre>## SAML file path configured in local properties<br>sso.keystore.location=file:/opt/hybris/config/security/samlKeystore.jks<br>sso.metadata.location=file:/opt/hybris/config/security/metadata.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CWp7gBWyX-MIFk-eCAesPg.png" /></figure><p><strong>Add SAMLSignon to mainfest.json and deploy:</strong></p><ul><li>Under the backoffice aspect to expose the samlsinglesignon extension in ccv2.</li></ul><pre>## manifest.json changs<br>  &quot;aspects&quot;: [<br>    {<br>      &quot;name&quot;: &quot;backoffice&quot;,<br>      &quot;properties&quot;: [],<br>      &quot;webapps&quot;: [<br>    ..........<br>    ..........<br>    <strong>{<br>          &quot;name&quot;: &quot;samlsinglesignon&quot;,<br>          &quot;contextPath&quot;: &quot;/samlsinglesignon&quot;<br>        }</strong><br>      ]<br>    },</pre><ul><li>Build and deploy the latest build. Also note, any changes to the metadata and keystore will require deployment to move the files to the server nodes.</li><li>Make sure the deployment is successful, as this will activate the configuration and ensure the security files are recognized by the system.</li></ul><p><strong>SAML Group mapping in SAP Commerce application ( Final Step )</strong></p><p>To complete the login process and ensure the users assigned to the <strong>AzureADDevproductmanager</strong> group in Azure AD can edit and save products in SAP Commerce, we need to do the following steps:</p><ol><li><strong>Create the employee group within SAP Commerce</strong>: This employee group will have the necessary roles and permissions required for the users to edit and save products.</li><li><strong>Map the Azure AD group to the SAP Commerce employee group</strong>:</li></ol><ul><li>The mapping will ensure that when a user logs in, the <strong>AzureADDevproductmanager</strong> group from the IDP is passed through the SAML contract.</li><li>SAP Commerce will receive the group name and map it to the appropriate employee group configured in SAP Commerce.</li></ul><p><strong>3. Impex for mapping</strong>:</p><ul><li>The following Impex will establish the mapping between the Azure AD group and the SAP Commerce employee group:</li></ul><pre># SAML users<br>INSERT_UPDATE SamlUserGroup; samlUserGroup[unique = true]                               ; enableBackofficeLogin; userType(code); userGroups(uid)[mode = replace]<br>                           ; AzureADDEVproductmanager                 ; true                 ; Employee      ; productmanager -- group in SAP Commerce</pre><p>This Impex script will map the <strong>AzureADDevproductmanager</strong> group from Azure AD to an employee group in SAP Commerce (e.g., <strong>employeeGroupWithEditProductPermission</strong>), which grants the required roles and permissions for users to edit and save products in SAP Commerce.</p><p>When the user logs in, the SAML response from the IDP will include the <strong>AzureADDevproductmanager</strong> group, and SAP Commerce will map it to the corresponding employee group based on the configuration in the Impex. This way, the user will have the required permissions to edit and save products.</p><p><strong>Test your SSO Login</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1014/1*7AO2r-QlEpVJRtsWUbX9HQ.png" /></figure><p>Wishing you all the best! 👏 If you’ve gained something new, don’t forget to give a clap and subscribe to stay updated with my posts.</p><p>Happy learning! 🚀</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=158182f6bb73" width="1" height="1" alt=""><hr><p><a href="https://medium.com/sap-commerce-cloud/enable-sso-via-open-saml-in-sap-commerce-158182f6bb73">Enable SSO via Open SAML in SAP Commerce</a> was originally published in <a href="https://medium.com/sap-commerce-cloud">SAP Commerce Cloud</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to export files  to SharePoint folder using APIs]]></title>
            <link>https://medium.com/sap-commerce-cloud/how-to-export-data-to-sharepoint-folder-fe0a1fb88cae?source=rss----bd41a29fd17---4</link>
            <guid isPermaLink="false">https://medium.com/p/fe0a1fb88cae</guid>
            <category><![CDATA[api]]></category>
            <category><![CDATA[sap-commerce]]></category>
            <category><![CDATA[export]]></category>
            <category><![CDATA[sharepoint]]></category>
            <dc:creator><![CDATA[Aswin Raghuraman]]></dc:creator>
            <pubDate>Sat, 18 Jan 2025 13:02:04 GMT</pubDate>
            <atom:updated>2025-01-24T09:22:05.179Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to export files to SharePoint folder using APIs</h3><p>In this document, you will learn how to export files to SharePoint, whether they are located in a team channel files folder or a shared folder.</p><p>To provide context, let me explain where I applied this feature. We use SAP Commerce to manage our eCommerce website, where enriching product data and keeping it up to date is crucial. Previously, we frequently received requests from multiple users to export data on demand.</p><p>Rather than handling these requests reactively, we implemented a solution to export the latest product data daily to SharePoint. This gave all users access to view and download the data as needed. Users could then retrieve the data, extract the necessary details, and perform their analysis independently.</p><p>While exporting to a storage blob was another option, we chose SharePoint due to its seamless integration within our ecosystem, user-friendly interface, and operational simplicity for business users. The best part? We no longer receive any ad-hoc data requests!</p><p>I’ll leave it to you to determine how this feature might be useful in your context.</p><h3><strong>Steps to enable Sharepoint export</strong></h3><p><strong>App registration in Cloud</strong></p><ol><li>To access the SharePoint drive, an app should be registered in Azure AD and appropriate access must be provided. Once the registration is completed, the infra team will share the tenant ID and secret keys to create the token to use in subsequent APIs.</li><li>Coordinate registration of the app and provide the drive ( share point folder) that will be used to upload the files.</li><li>You can get permission at these scope levels: Tenant, Site Collection, Site, Team channel, List/Library</li></ol><blockquote>I got app registration and grant access for a Team channel. So I can automatically create any folders/sub folders and upload the files</blockquote><p><strong>Documentation</strong>: <a href="https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/add-in-permissions-in-sharepoint#types-of-add-in-permissions-and-permission-scopes">Types of add-in permissions and permission scopes</a></p><p>4. Infra team will provide the below credentials. Keep it in a secure place</p><p>Application ID or Client ID: 5XXXXX-XXXXXX<br>Cleint-Secret: FwXXXXXXX-XXXX<br>Tenant ID: 6XXXXXX-XXXX-XXXX-XXXX–2XXXXXX</p><h4><strong>Upload the files to the SharePoint</strong></h4><ol><li><strong>Create access token</strong></li></ol><p>Get access token using client id and secret</p><p><strong>API </strong>— https://login.microsoftonline.com/&lt;Tenant ID&gt;/oauth2/v2.0/token</p><p><strong>Method</strong>: POST</p><p><strong>Headers</strong>:</p><p>Content-Type:application/x-www-form-urlencoded</p><p><strong>Body</strong>: Select application/x-www-form-urlencoded ( in postman)</p><p>grant_type:client_credentials<br>client_id:5XXXXX-XXXXXX<br>client_secret:FwXXXXXXX-XXXX<br>scope:<a href="https://graph.microsoft.com/.default">https://graph.microsoft.com/.default</a></p><p>curl --location &#39;https://login.microsoftonline.com/<strong>&lt;TENANT-ID&gt;</strong>/oauth2/v2.0/token&#39; \ --header &#39;Content-Type: application/x-www-form-urlencoded&#39; \ --data-urlencode &#39;grant_type=client_credentials&#39; \ --data-urlencode &#39;client_id=5XXXXX-XXXXXX&#39; \ --data-urlencode &#39;client_secret=FwXXXXXXX-XXXX&#39; \ --data-urlencode &#39;scope=https://graph.microsoft.com/.default&#39;</p><p>Response:</p><p>&quot;access_token&quot;: &quot;eyXXXXXXXXXXXXXXXXX&quot;</p><p>The access token will be used in subsequent APIs</p><p>2.<strong> Get Drive ID</strong></p><p>Invoke the below API to get the drive id</p><pre>curl - location &#39;https://graph.microsoft.com/v1.0/sites/&lt;TeamChannel-ID&gt;/drives&#39; \  - header &#39;Authorization: Bearer access_token&#39;</pre><p>Access token — Use the access token from previous API response</p><p>Note down the Drive ID: b!XXXXX-XXXX</p><p><strong>3. File upload — Create session</strong></p><p><strong>API</strong>: <a href="https://graph.microsoft.com/v1.0/drives/b!32cw90d8Q0Ki68DXlHD6ydLyc5nH0lRMhhjT4EVhpVzH9NhO7jffQ687AltO8Hj0/items/root:/PIM">https://graph.microsoft.com/v1.0/drives/<strong>&lt;Drive ID&gt;</strong>/items/root:/</a><strong>&lt;folder names&gt;</strong>/filename.extension:/createUploadSession</p><p><strong>Header</strong>: Authorization: Bearer <strong>&lt;Access token&gt;</strong></p><p>For eg.,</p><p><a href="https://graph.microsoft.com/v1.0/drives/b!32cw90d8Q0Ki68DXlHD6ydLyc5nH0lRMhhjT4EVhpVzH9NhO7jffQ687AltO8Hj0/items/root:/PIM">https://graph.microsoft.com/v1.0/drives/&lt;<strong>Drive ID</strong>&gt;/items/root:<strong>/T</strong></a><strong>estFolderExports/ProductSubFolder/test01.pdf</strong>:/createUploadSession</p><p><strong>Request</strong>:</p><p>curl --location --request POST &#39;https://graph.microsoft.com/v1.0/drives/<strong>&lt;DriveID&gt;</strong>/items/root:<a href="https://graph.microsoft.com/v1.0/drives/b!32cw90d8Q0Ki68DXlHD6ydLyc5nH0lRMhhjT4EVhpVzH9NhO7jffQ687AltO8Hj0/items/root:/PIM"><strong>/T</strong></a><strong>estFolderExports/ProductSubFolder/test01.pdf</strong>:/createUploadSession&#39; \ --header &#39;Authorization: Bearer &lt;access token from previous API&gt;&#39;</p><p><strong>Response</strong></p><p>In the response, you will get upload url which will have another access token to upload the file</p><p>{ &quot;@odata.context&quot;: &quot;https://graph.microsoft.com/v1.0/$metadata#microsoft.graph.uploadSession&quot;, &quot;expirationDateTime&quot;: &quot;2023-04-26T02:18:08.69Z&quot;, &quot;nextExpectedRanges&quot;: [ &quot;0-&quot; ], &quot;uploadUrl&quot;: &quot;https://<strong>yourOrg</strong>.sharepoint.com/teams/DevOps/_api/v2.0/drives/<strong>&lt;DriveID&gt;</strong>/items/xxxxxxxxxxxxxxxxxxxx/uploadSession?guid=&#39;xxxx-xxx-xxxx-xxx-xxxxxxx&#39;&amp;overwrite=True&amp;rename=False&amp;dc=0&amp;tempauth=xxxxxxx&quot; }</p><p>6. Upload file ( can be used till 60MB ) . More than 60 MB , the file should be sent as chunks ( not covered here)</p><p><strong>API</strong>: Use API from the previous response &quot;uploadUrl&quot;</p><p>FYR, the received upload url will have below parameters.</p><p>guid:’xxxx-xxxx-xxx-xxx-xxxx’<br>overwrite:True<br>rename:False<br>dc:0<br><strong>tempauth</strong>: XXXX-XXXX-XXXX (Access token to upload the file)</p><p>Use the upload url with header as Authorization: Bearer &lt;tempauth from the upload url param&gt;</p><p><strong>Method</strong>: PUT</p><p><strong>Headers:</strong></p><p>Content-Type: &lt;content type of the file&gt; for eg. application/PDF</p><p>Authorization: Bearer &lt;tempauth from the upload url param&gt;</p><p>Content-Range: bytes 0-<strong>(Totalbytes -1)</strong>/<strong>Totalbytes</strong></p><p><strong>Request Body:</strong></p><p>select <strong>Binary </strong>and select the file</p><p><strong>Response</strong>:</p><p>HTTP 201 created with download url</p><p><strong>Example</strong></p><p><strong>Request:</strong></p><p>curl --location --request PUT &#39;https://<strong>yourOrg</strong>.sharepoint.com/teams/DevOps/_api/v2.0/drives/<strong>&lt;DriveID&gt;</strong>/items/xxxxxxxxx/uploadSession?guid=%xxxxxxxxx-xxxxxxxxx-xxxxxxxxx%27&amp;overwrite=True&amp;rename=False&amp;dc=0&amp;tempauth=XXXXXXXX&#39; \ --header &#39;Content-Range: bytes <strong>0-1412362/1412363</strong>&#39; \ --header &#39;Content-Type: application/pdf&#39; \ --header &#39;Authorization: Bearer XXXXXXXX&#39; \ --data &#39;@&lt;filepath&gt;/test01.pdf&#39;</p><p><strong>Response</strong>:</p><p>{ &quot;@odata.context&quot;: &quot;https://<strong>yourOrg</strong>.sharepoint.com/teams/&lt;TeamChannelID&gt;/_api/v2.0/$metadata#items/$entity&quot;, &quot;@content.downloadUrl&quot;: &quot;https://<strong>yourOrg</strong>.sharepoint.com/teams/&lt;TeamChannelID&gt;/_layouts/15/download.aspx?UniqueId=7adfafdf-501a-4c09-915c-636a0330e4e3&amp;Translate=false&amp;tempauth=<strong>&lt;TempAuthToken&gt;</strong>&amp;ApiVersion=2.0&quot;, &quot;createdBy&quot;: { &quot;application&quot;: { &quot;id&quot;: &quot;596b3ef1-4b82-493c-9974-b147aac76959&quot;, &quot;displayName&quot;: &quot;SharePoint Test&quot; }, &quot;user&quot;: { &quot;displayName&quot;: &quot;SharePoint App&quot; } }, &quot;createdDateTime&quot;: &quot;2023-04-26T02:03:09Z&quot;, &quot;eTag&quot;: &quot;\&quot;{7ADFAFDF-501A-4C09-915C-636A0330E4E3},3\&quot;&quot;, &quot;id&quot;: &quot;016BLMUI67V7PXUGSQBFGJCXDDNIBTBZHD&quot;, &quot;lastModifiedBy&quot;: { &quot;application&quot;: { &quot;id&quot;: &quot;xxxxxx-xxxxxx-xxxxxx-xxxxxx-xxxxxx&quot;, &quot;displayName&quot;: &quot;SharePoint Test&quot; }, &quot;user&quot;: { &quot;displayName&quot;: &quot;SharePoint App&quot; } }, &quot;lastModifiedDateTime&quot;: &quot;2023-04-26T02:03:34Z&quot;, &quot;name&quot;: &quot;test01.pdf&quot;, &quot;parentReference&quot;: { &quot;driveType&quot;: &quot;documentLibrary&quot;, &quot;driveId&quot;: &quot;&lt;<strong>DriveID&gt;</strong>&quot;, &quot;id&quot;: &quot;016BLMUI2PNXGP2S7FH5AI2SZEMV2WSN23&quot;, &quot;path&quot;: &quot;/drives/<strong>&lt;DriveID</strong>&gt;/root:/<a href="https://graph.microsoft.com/v1.0/drives/b!32cw90d8Q0Ki68DXlHD6ydLyc5nH0lRMhhjT4EVhpVzH9NhO7jffQ687AltO8Hj0/items/root:/PIM"><strong>T</strong></a><strong>estFolderExports/ProductSubFolder</strong>, &quot;siteId&quot;: &quot;f73067df-7c47-4243-a2eb-c0d79470fac9&quot; }, &quot;webUrl&quot;: &quot;https://<strong>yourOrg</strong>.sharepoint.com/teams/&lt;TeamChannel&gt;<a href="https://graph.microsoft.com/v1.0/drives/b!32cw90d8Q0Ki68DXlHD6ydLyc5nH0lRMhhjT4EVhpVzH9NhO7jffQ687AltO8Hj0/items/root:/PIM"><strong>/T</strong></a><strong>estFolderExports/ProductSubFolder/</strong>test01.pdf&quot;, &quot;cTag&quot;: &quot;\&quot;c:{7ADFAFDF-501A-4C09-915C-636A0330E4E3},2\&quot;&quot;, &quot;file&quot;: { &quot;hashes&quot;: { &quot;quickXorHash&quot;: &quot;FWCddNIZrCwInMkwtpyAwS4BhA8=&quot; }, &quot;irmEffectivelyEnabled&quot;: false, &quot;irmEnabled&quot;: false, &quot;mimeType&quot;: &quot;application/pdf&quot; }, &quot;fileSystemInfo&quot;: { &quot;createdDateTime&quot;: &quot;2023-04-26T02:03:09Z&quot;, &quot;lastModifiedDateTime&quot;: &quot;2023-04-26T02:03:34Z&quot; }, &quot;shared&quot;: { &quot;effectiveRoles&quot;: [ &quot;write&quot; ], &quot;scope&quot;: &quot;users&quot; }, &quot;size&quot;: 1412363 }</p><p><strong>201 Created</strong></p><p>If all goes fine, the upload should be successful and we should be able to see the files in the SharePoint drive.</p><p>I hope you learned something in this 5 mins read. Clap if you liked it and subscribe to receive more posts from me :)</p><p>Keep learning…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fe0a1fb88cae" width="1" height="1" alt=""><hr><p><a href="https://medium.com/sap-commerce-cloud/how-to-export-data-to-sharepoint-folder-fe0a1fb88cae">How to export files  to SharePoint folder using APIs</a> was originally published in <a href="https://medium.com/sap-commerce-cloud">SAP Commerce Cloud</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SAP Commerce Cloud CCV2 — How to add SSL Certificate to the endpoints]]></title>
            <link>https://medium.com/sap-commerce-cloud/sap-commerce-cloud-ccv2-how-to-add-ssl-certificate-to-the-endpoints-9690243be367?source=rss----bd41a29fd17---4</link>
            <guid isPermaLink="false">https://medium.com/p/9690243be367</guid>
            <category><![CDATA[sapcommercecloud]]></category>
            <category><![CDATA[hybris]]></category>
            <category><![CDATA[ssl-certificate]]></category>
            <category><![CDATA[sap-commerce]]></category>
            <category><![CDATA[sap-cloud-platform]]></category>
            <dc:creator><![CDATA[Aswin Raghuraman]]></dc:creator>
            <pubDate>Wed, 17 Jan 2024 20:12:58 GMT</pubDate>
            <atom:updated>2024-01-20T03:33:23.966Z</atom:updated>
            <content:encoded><![CDATA[<h3>SAP Commerce Cloud CCV2 — How to add SSL Certificate to the endpoints</h3><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*S_J3CFLa3TqX0CCp.png" /></figure><p>In this document, you will learn and understand how to add or renew SSL Certificate to the endpoints as per your custom domain.</p><p>By default, once an environment is provisioned in SAP Commerce Cloud for eg. dev d1, the below application endpoints will be displayed under that env.</p><p>Click the <strong>Environments</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*TO1kHnTh1qEyjvve.png" /></figure><p>Click on <strong>d1 </strong>to see the details of the env. All the public endpoints of d1 env will get listed and it will configured with the default URL to access the applications — Backoffice, Storefront, Solr, Background processing, API.</p><p>For these default URLs, SAP will provide SSL certificates and auto-renew those for you. However, if a custom domain URL is used, you need to add your own SSL Certificate and renew it promptly.</p><p>For eg, for the below URLs SAP will take care of SSL Certificate renewal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*xqfz_TJ8gK8KxIwr.png" /></figure><p>In the case of a custom domain, you have to install and renew it.</p><blockquote>If you need to setup a new custom domain url, check out my other story. <a href="https://medium.com/sap-commerce-cloud/setting-custom-domain-to-the-application-endpoint-sap-commerce-cloud-341682b3396d">Setting custom domain to the application endpoint (SAP Commerce Cloud CCV2)</a></blockquote><p>The below steps will help you configure to create and install the new SSL certificate</p><h3>Step 1: Create a CSR file</h3><p>For SSL certificates, the first step is to create a <a href="https://www.digicert.com/kb/csr-creation.htm">certificate signing request (CSR)</a></p><p>There are mutiple ways of creating this CSR file. I’ll show you how to use openSSL tool to generate one.</p><blockquote>Digicert tool provides a utility tool as well. Store the generated private key as its needed during installation C<a href="https://www.digicert.com/support/tools/certificate-utility-for-windows">heck it out here</a></blockquote><h4>Create new CSR using OpenSSL</h4><ol><li>Install the OpenSSL for Windows from <a href="https://slproweb.com/products/Win32OpenSSL.html">here</a> [Light version is fine — eg Win64 OpenSSL v3.1.2 Light]</li><li>Create a file named mysan.cnf with the following information at the installed location: ex C:\OpenSSL-WinXX\bin.</li><li>Add the below configuration to the file including SANs. ( Specific Additional domains) For eg., if you need to use same certificate for all your applications —<em> Backoffice, Storefront, Solr, Background processing, API</em> you need to add all the sub-domain URLs For eg., x.api.com.au, x.backoffice.com.au as SANs while generating the CSR file</li></ol><pre>[ req ]<br>default_bits       = 2048<br>distinguished_name = req_distinguished_name<br>req_extensions     = req_ext<br>[ req_distinguished_name ]<br>countryName                 = AU<br>stateOrProvinceName         = NSW<br>localityName               = Sydney<br>organizationName           = XXXX<br>commonName                 = x.com.au<br>[ req_ext ]<br>subjectAltName = @alt_names<br>[alt_names]<br>DNS.1=x.backoffice.com.au<br>DNS.2=x.api.com.au<br>DNS.3=x.backgroundprocessing.com.au<br>DNS.4=x.solr.com.au</pre><p>4. Next generate the CSR and Private key with this command.</p><pre>openssl req -out server.csr -newkey rsa:2048 -nodes -keyout server.key -config mysan.cnf</pre><p>5. Convert the server.key to RSA format using below command</p><pre>openssl rsa -in server.key -out myserver.key</pre><blockquote>Now, myserver.key file in the required RSA format. Keep the private key (server.key) safely as its required to intall the certificate into SAP Commerce portal</blockquote><p><strong>Verification</strong></p><p>To verify the CSR for SAN:</p><ol><li>Open the command prompt as an administrator, goto the OpenSSL tool directory C:\OpenSSL-WinXX\bin and run:</li></ol><pre>openssl req -noout -text -in server.csr</pre><p>2. Under Subject Alternative Name, the different DNS names must appear for which this generated CSR file is valid.</p><pre>DNS: x.api.com.au, DNS:x.backoffice.com.au, DNS:x.api.com.au, <br>DNS:x.backgroundprocessing.com.au, DNS:x.solr.com.au</pre><h3>Step 2: Order the SSL Certificate</h3><ol><li>Go to your preferred SSL Certificate provider like Digicert, Lets Encrypt etc</li><li>Order your multi-domain SSL certificate. Provide your generated CSR file and all the domains to be added.</li><li>Once the order is fulfilled, you will receive multiple files from the provider.</li></ol><p><em>a) Certificate file</em></p><p><em>b) Intermediate certificate file</em></p><p><em>c) Root certificate file</em></p><h3>Step 3: Install the SSL Certificate in the SAP Commerce Portal</h3><ol><li>Log in and navigate to <strong>SAP Portal → Security → SSL Certificates → Create</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*44IyCYACDkJjWm8PvZH9lA.png" /></figure><p>2. Create the new certificate</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2xLsfJznsrSBIPz6fJlapg.png" /></figure><p><strong>Name</strong>: <em>Any preferred name for eg., certificate_&lt;created date&gt;</em></p><p><strong>Description</strong>: <em>Any preferred description for eg., certificate created on &lt;date&gt; and expires on &lt;date&gt;</em></p><p><strong>Certificate File:</strong></p><p>Copy &amp; paste the domain <strong>Certificate file </strong>contents here ( from the list of files received from SSL Certificate provider)</p><p><strong>Key File:</strong></p><p>Copy &amp; paste the content of the <strong>private key </strong>file in this box.</p><blockquote>If the private key is lost, we need to create a new csr request. The key will get generated along with csr file. Then provide the new csr for generating the new certificate to install or renew.</blockquote><p><strong>CA Certificate File:</strong></p><p>Here we need to import contents from two certificate files — intermediate certificate and root certificate which we got from the provider and in the below-mentioned sequence.</p><p><strong>Intermediate certificate</strong></p><p><strong>Root certificate</strong></p><p>Copy the contents in a sequence of Intermediate and Root certificates in this field. The order of content must be followed to avoid any certificate errors.</p><p>Then <strong>Save the certificate</strong>. It should get saved without any issues if the steps are followed as mentioned</p><p>The new certificate should now be listed under the SSL Certificates tab.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vKiT2CtVy1EYH22adVaAhQ.png" /></figure><h3><strong>Step 4: Link the new certificate to the endpoints</strong></h3><ol><li>Navigate to the environment and go to the endpoints page</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*OxxZOc3VHSOzPx2l.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*jaZ-YKyZRamNFwwF.png" /></figure><p>2. Click on the endpoint and select the new certificate from SSL Certificate dropdown.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OJYBqrx4_oD3lW2zrVkdnA.png" /></figure><p>3. Save the configuration.</p><p>Kindly note, that deployment is required to ensure the SSL certificate is linked to the applications.</p><p>Once you do it for all the mentioned endpoints across envs, the job is done. Pat yourself and have a chocolate :)</p><blockquote><strong>Certificate verification for expiry</strong></blockquote><blockquote>We can use the below URL to verify the expiration date — <a href="https://trackssl.com/online-ssl-certificate-checker/">https://trackssl.com/online-ssl-certificate-checker/</a></blockquote><p>Hope this article is useful and you learned something!</p><p>If you liked the document, clap and follow me for more posts :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9690243be367" width="1" height="1" alt=""><hr><p><a href="https://medium.com/sap-commerce-cloud/sap-commerce-cloud-ccv2-how-to-add-ssl-certificate-to-the-endpoints-9690243be367">SAP Commerce Cloud CCV2 — How to add SSL Certificate to the endpoints</a> was originally published in <a href="https://medium.com/sap-commerce-cloud">SAP Commerce Cloud</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Setting custom domain to the application endpoint (SAP Commerce Cloud CCV2)]]></title>
            <link>https://medium.com/sap-commerce-cloud/setting-custom-domain-to-the-application-endpoint-sap-commerce-cloud-341682b3396d?source=rss----bd41a29fd17---4</link>
            <guid isPermaLink="false">https://medium.com/p/341682b3396d</guid>
            <category><![CDATA[sap-commerce]]></category>
            <category><![CDATA[sap-cloud-platform]]></category>
            <category><![CDATA[sap-hybris]]></category>
            <category><![CDATA[sapcommercecloud]]></category>
            <dc:creator><![CDATA[Aswin Raghuraman]]></dc:creator>
            <pubDate>Sat, 13 Jan 2024 14:33:32 GMT</pubDate>
            <atom:updated>2024-01-20T03:33:49.771Z</atom:updated>
            <content:encoded><![CDATA[<p>In this document, you will understand how to configure and set a new custom domain to the application endpoints in SAP Commerce Cloud.</p><p>By default, once an environment is provisioned in SAP Commerce Cloud for eg. dev d1, the below application endpoints will be displayed under that env.</p><p>Click the <strong>Environments</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IiiFGsknzIG1-Gjyxg75UA.png" /></figure><p>Click on <strong>d1 </strong>to see the details of the env. All the public endpoints of d1 env will get listed and it will be configured with default URLs to access the applications – Back office, Storefront, Solr, Background processing, API. For brevity, let’s set a custom domain for your <strong>accstorefront </strong>application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NXaB_vZGETcFIXFzHRhMsg.png" /></figure><blockquote>Before proceeding, make sure the storefront website is getting loaded with the default domain url.</blockquote><h3>Step 1: Create a new domain</h3><p>You can use Azure, AWS, or a third-party provider to create a new domain URL for your storefront. Most organizations will have their domain pattern, so request a domain to your internal team.</p><blockquote>Let&#39;s say the domain URL is, <strong>dev-sapcommerce.com.au</strong></blockquote><h3><strong>Step 2: Map the CNAME to the domain URL</strong></h3><p>As mentioned earlier, SAP Commerce will provide a default URL to access the application</p><blockquote>for accstorefront, the default URL is <strong>accstorefront-c1xxxxxx-d1.public.model-t.cc.commerce.ondemand.com</strong></blockquote><p>Login into your domain provider portal and map your domain URL to this CNAME</p><blockquote><strong>dev-sapcommerce.com.au </strong>maps to <strong>accstorefront-c1xxxxxx-d1.public.model-t.cc.commerce.ondemand.com</strong></blockquote><p>CNAME entry should be added to the domain and then wait for a few hours to let it propagate to all the nodes across the globe</p><h3>Step 3: Configure the new domain URL in the cloud portal</h3><p>Click and open the endpoint to update the new domain URL</p><blockquote>Open <strong>accstorefront </strong>endpoint and update the domain url to <strong>dev-sapcommerce.com.au </strong>as shown below</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NXaB_vZGETcFIXFzHRhMsg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SHozFFoXcxeBjQ0GOoh4zA.png" /></figure><h3>Step 4: Test the new domain URL</h3><p>In your browser, key in the domain URL <strong>dev-sapcommerce.com.au, it should now load your storefront website.</strong></p><p>Similar steps can be followed for other endpoints to set the custom domain.</p><p>Hope this article is useful and you learned something!</p><p>If you liked the document, clap and follow me for more posts :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=341682b3396d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/sap-commerce-cloud/setting-custom-domain-to-the-application-endpoint-sap-commerce-cloud-341682b3396d">Setting custom domain to the application endpoint (SAP Commerce Cloud CCV2)</a> was originally published in <a href="https://medium.com/sap-commerce-cloud">SAP Commerce Cloud</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SAP Commerce CCV2 Cloud Portal — Manual Build & Deployment Process]]></title>
            <link>https://medium.com/sap-commerce-cloud/sap-commerce-ccv2-cloud-portal-manual-build-deployment-process-897fa4c02f17?source=rss----bd41a29fd17---4</link>
            <guid isPermaLink="false">https://medium.com/p/897fa4c02f17</guid>
            <category><![CDATA[sap-commerce]]></category>
            <category><![CDATA[sapcommercecloud]]></category>
            <category><![CDATA[ccv2]]></category>
            <category><![CDATA[sap-cloud-portal]]></category>
            <category><![CDATA[hybris]]></category>
            <dc:creator><![CDATA[Aswin Raghuraman]]></dc:creator>
            <pubDate>Wed, 27 Dec 2023 04:03:08 GMT</pubDate>
            <atom:updated>2024-01-20T03:34:14.576Z</atom:updated>
            <content:encoded><![CDATA[<h3>SAP Commerce CCV2 Cloud Portal — Manual Build &amp; Deployment Process</h3><p>In this document, you can understand the manual build and deployment process in SAP Commerce CCV2 ( Cloud Portal )</p><p>Navigate to the SAP Commerce Cloud Portal using your SAP S-User and Password — <a href="https://portal.commerce.ondemand.com/"><strong>https://portal.commerce.ondemand.com/</strong></a></p><p>After login, you will see all the provisioned environments of your subscription</p><blockquote>S1 — Staging and P1 — Production ( you might see a different list as per your subscription)</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lJHnoFmbOhigyBdieklh-g.png" /><figcaption>Environments in CCV2</figcaption></figure><h3><strong>CCV2 Git Repo connection setup</strong></h3><p>Click <strong>Repository </strong>and enter your git repo URL as shown below</p><p>Click <strong>Generate and create a public key.</strong></p><p>Add the public keys in your git repo</p><p><strong>Git &gt; Account &gt; settings &gt; Add SSH &amp; GPG Keys &gt; New SSH Key</strong></p><p>Follow the microlearning to understand all the steps <a href="https://microlearning.opensap.com/media/How+to+Connect+Your+Code+Repository+to+Cloud+Portal-+SAP+Commerce+Cloud/1_k7dw7g1m">click here</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GdOv6lUwYvEznToXhNUyzA.png" /></figure><h3><strong>Build Process</strong></h3><p>In the right side menu, <strong>Click &gt; Builds</strong></p><p>All the previous builds will be listed here. You can use either any of these builds to deploy or click <strong>Create </strong>to start a new build</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2ERzjOurLIMvxZgCKFVYjQ.png" /><figcaption>Builds</figcaption></figure><p><strong>Click &gt; Builds &gt; Create</strong></p><p>It should open the below create build page.</p><p>Enter the build name and git branch details.</p><p><strong>Build name </strong>— Provide your naming conventions for the build</p><p><strong>Git Branch</strong> — Enter the git branch ( <em>Connection between git repo and your subscription should already be established </em>)</p><p>Then click <strong>Save</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kUcvb_7awHsBTyE8LiRBsQ.png" /></figure><p>It will start a new build. Initial state will be <strong>Scheduled</strong>. Later it will change the status to success or failure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DrPXXvJaPNH47QZGCvqydg.png" /></figure><p>After a few minutes, the build will start progressing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p78_EMYCLIIaUFQIfr_c7w.png" /></figure><p>If it fails, click on the icon at the row end to retrigger the build.</p><p>Click on the build name to get more details on the build progress and logs</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0IXKUxQ87MGEdv0zX6uAPQ.png" /></figure><p><strong>Download Build Log</strong> will provide the build details and can be used for debugging build failures.</p><p>If the build runs without any issues, it will show as <strong>Success</strong>, and its ready for deployment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZSsN2bJsOSDA0DazLx500g.png" /></figure><h3>Deploy</h3><p>Select the new build or specific build to be deployed from the builds list. It will open up the below page.</p><p>Click on the <strong>Deploy to Environment</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I01Pcz1RjLLw8aRa3UGFMw.png" /><figcaption>Deployment Window</figcaption></figure><blockquote><strong>Target Enviroment</strong></blockquote><blockquote>Choose the env where you want to deploy your build — Dev, Staging or PROD</blockquote><blockquote><strong>Platform Update Mode</strong></blockquote><blockquote>There are three options to select</blockquote><blockquote><strong>No Migration Required</strong> : If there are no db changes ( items.xml changes) Select this one.</blockquote><blockquote><strong>Migrate </strong>— If there are db changes select this option. ( <em>I usually select and recommend this as it wont create any issues even when there are no db changes</em>)</blockquote><blockquote><strong>Initialize Database</strong> — It will delete all the data and recreate a new env <strong>(</strong> <strong><em>Unless you know what you are doing, never select this option)</em></strong></blockquote><blockquote><strong>Deployment Mode</strong></blockquote><blockquote>There are three options to select</blockquote><blockquote><strong>Rolling update:</strong> No downtime and it will deploy the changes to the container one by one. API and storefront will not go down. Backoffice will go down for 5–10 minutes during the deployment ( <strong>Recommended Option</strong>)</blockquote><blockquote><strong>Recreate</strong>: Faster but it will have downtime and the site won’t be available during the deployment. It will recreate all the containers.</blockquote><blockquote><strong>Blue/Green: </strong>This is to create a new environment for testing and once verification is completed we can move the changes to the live site. ( Available on request and only for Prod (P1) env)</blockquote><p>Now let&#39;s start the deployment</p><p><strong>Deployment Process</strong></p><p>To recap, click on the build to be deployed and click Deploy to Environment button.</p><p>In the Deploy Build window,</p><ol><li>Select the <strong>Target Environment </strong>— s1 (or other env)</li><li>Select the <strong>Data Migration Mode </strong>— Migrate (or other options)</li><li>Select the <strong>Deployment Mode </strong>— Rolling update (or other options)</li></ol><p>Click <strong>Deploy </strong>button</p><p>It will start the deployment and you can check the progress here. After deployment is complete, the changes will be reflected in the application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8qCZkN0slk4YvmfBq66uaw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OJ6bXfpLRQS1piO2h3IFeA.png" /><figcaption>Deployment Progress</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ETCHACBfPMyZRRnH0yyo9A.png" /></figure><p>Once the deployment is complete, the status should change from Deploying to <strong>Deployed</strong>.</p><blockquote><strong>Note</strong>: I recommend to create a complete backup of your Prod env, before you deploy</blockquote><p>If you liked the document, clap and follow me for more posts :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=897fa4c02f17" width="1" height="1" alt=""><hr><p><a href="https://medium.com/sap-commerce-cloud/sap-commerce-ccv2-cloud-portal-manual-build-deployment-process-897fa4c02f17">SAP Commerce CCV2 Cloud Portal — Manual Build &amp; Deployment Process</a> was originally published in <a href="https://medium.com/sap-commerce-cloud">SAP Commerce Cloud</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to get your emails as notifications on your Microsoft Teams channel?]]></title>
            <link>https://medium.com/sap-commerce-cloud/how-to-get-your-emails-as-notifications-on-your-microsoft-teams-channel-cc55f8f8786a?source=rss----bd41a29fd17---4</link>
            <guid isPermaLink="false">https://medium.com/p/cc55f8f8786a</guid>
            <category><![CDATA[sap-commerce]]></category>
            <category><![CDATA[integration]]></category>
            <category><![CDATA[alerts]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[microsoft-teams]]></category>
            <dc:creator><![CDATA[Aswin Raghuraman]]></dc:creator>
            <pubDate>Sat, 02 Jul 2022 03:26:55 GMT</pubDate>
            <atom:updated>2022-06-26T12:38:25.931Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to receive your alert emails as notifications on your Microsoft Teams channel?</h3><p>In this post (2 mins) , you will learn how to receive your application alert emails on the Microsoft Teams channel.</p><p>I can imagine lot of use cases. Added few below.</p><ul><li>You can use it to receive the alerts from systems which supports only email notifications. At present, you may have configured a group mail which you will receive and action upon.</li><li>You would like to consolidate keep all the monitoring alerts of different systems in one place. And some systems will emit only email alerts and integration with MS teams is not available.</li><li>You would like get application errors on teams channel rather than emails</li><li>Request from users via emails.</li><li>And more</li></ul><blockquote>I personally got this idea when I want to receive performance related alerts from SAP Commerce platform. There is no direct integration. so the SAP team will trigger to your requested email whenever there are performance issues in the system. Ok, I hear you saying “Enough man! now can you talk about how to configure it?” Lets jump on to it.</blockquote><h3><strong>Steps to configure</strong></h3><ol><li>Get the email id of your MS team channel.</li></ol><p>2. Click the … button of your channel</p><p>3. Click on the “<strong>Manage Channel</strong>” option</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-qTVw7bv8rFFzHz9nyTyvA.png" /></figure><p>4. Again click the … button. Then click the “<strong>Get email address”</strong> option</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/905/1*4WNZYrSmaaTZDMxjieu2yQ.png" /></figure><p>5. It will open a popup <strong>to show your Microsoft team channel email address</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/813/1*6lLjhgeY9BjWhOiZzip7YA.png" /></figure><p>Now all you have to do is, copy and configure this email address where-ever needed to receive the notifications on your channel. That’s it !!</p><p>I sent a TEST EMAIL from my email client to my team channel email address and got the below notification on my channel. HOORAY !! Tt worked!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FtMnVeIgF_ca6kw_5K_EVA.png" /></figure><p>Though its simple, its a very effective solution for lot of scenarios.</p><p>Hope you enjoyed learning something new. If you like my post, give a clap and follow me for my new posts :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cc55f8f8786a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/sap-commerce-cloud/how-to-get-your-emails-as-notifications-on-your-microsoft-teams-channel-cc55f8f8786a">How to get your emails as notifications on your Microsoft Teams channel?</a> was originally published in <a href="https://medium.com/sap-commerce-cloud">SAP Commerce Cloud</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to get alerts of GitHub events on your Microsoft Teams channel?]]></title>
            <link>https://medium.com/sap-commerce-cloud/how-to-alerts-from-github-to-your-microsoft-teams-channel-8c476471a353?source=rss----bd41a29fd17---4</link>
            <guid isPermaLink="false">https://medium.com/p/8c476471a353</guid>
            <category><![CDATA[microsoft-teams]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[alerting]]></category>
            <category><![CDATA[monitoring]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Aswin Raghuraman]]></dc:creator>
            <pubDate>Sat, 02 Jul 2022 03:26:29 GMT</pubDate>
            <atom:updated>2022-06-12T07:17:49.054Z</atom:updated>
            <content:encoded><![CDATA[<p>GitHub doesn’t require an introduction. Its the widely used and universal code repository. In this post, you will learn how to get the GitHub alerts like commits, PRs, etc., on your Microsoft Teams channel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gV-0bynCEZrBMDLX" /><figcaption>GitHub-Teams Integration</figcaption></figure><h3><strong>Create Webhook url in MS Team channel</strong></h3><p>Webhooks are typically used for these kind of integrations. Lets first create the webhook in Teams.</p><p>Click the ( … ) button on your DevOps channel* and <em>select </em><strong><em>Connectors</em></strong></p><p>*<em>Your Teams channel ( where you would like to receive github alerts)</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/923/1*7IRECxCNK9_KJBBYjNO7xA.png" /></figure><p>It will show all the connectors available to use.</p><p>Click the<strong> <em>Incoming Webhook -&gt; Configure</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/765/1*1es1P07kWTsBiHDpXrk-cw.png" /></figure><p>Provide a name for your webhook service and click <strong><em>Create</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/743/1*5dEqlp8RZGvZ63Sd1E8Wtw.png" /></figure><p>Teams will generate the webhook url. This is the webhook url that we have to use it GitHub</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/711/1*lIv_w8tG5VKCVke93ACeEw.png" /></figure><h3>Configurations in GitHub</h3><p>Login into your GitHub code repo and click <strong><em>Settings -&gt; Webhooks</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2DjA1sEvEn3xo9jPK3sp6w.png" /></figure><p>Click <strong><em>Add webhook </em></strong>button</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/908/1*MgawNtwYOxgEnE_2jMWLPQ.png" /></figure><p><strong>Payload URL</strong> — <em>Paste your Team webhook url ( generated in the previous step)</em></p><p><strong>Content type</strong> — application/json</p><p><strong>Secret </strong>— Can be blank</p><p><strong>SSL Verification </strong>— Select <em>Enable SSL verification</em></p><p><strong>Events</strong></p><ul><li><strong>Just the push</strong> — <em>to enable alerts for only code push to any branch</em></li><li><strong>Send me everything </strong>—<em> to get all alerts from GitHub</em></li><li><strong>Let me select individual events</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/542/1*zu-iYCr0Ja8n0EF1xCrUSQ.png" /><figcaption>Select the required alerts here</figcaption></figure><ul><li><strong>Active </strong>—<em> should be enabled</em></li></ul><p>click <strong>Add webhook </strong>and it will show the list of configured webhooks</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/926/1*AGom_nI85hI5-pLw-rxtMg.png" /></figure><p>The configuration required to receive the notifications are complete.</p><p>Now push or create a PR in your GitHub repo, the alert will pop on your teams channel</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/879/1*lpFHSqew0cDtG6rCD9XS2w.png" /><figcaption>Alert in Teams channel</figcaption></figure><p>You have successfully integrated and you will notified on the Github events.</p><p><strong>Conclusion</strong></p><p>The steps provided here will instantly help you to enable alerts of Github events.</p><p>Hope you enjoyed the post and it was helpful. Follow me to get my posts</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8c476471a353" width="1" height="1" alt=""><hr><p><a href="https://medium.com/sap-commerce-cloud/how-to-alerts-from-github-to-your-microsoft-teams-channel-8c476471a353">How to get alerts of GitHub events on your Microsoft Teams channel?</a> was originally published in <a href="https://medium.com/sap-commerce-cloud">SAP Commerce Cloud</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CICD Build & Deployment in SAP Commerce CCV2 from GitHub Actions]]></title>
            <link>https://medium.com/sap-commerce-cloud/cicd-build-deployment-in-sap-commerce-ccv2-from-github-actions-daaf6abda0e3?source=rss----bd41a29fd17---4</link>
            <guid isPermaLink="false">https://medium.com/p/daaf6abda0e3</guid>
            <category><![CDATA[cicd-pipeline]]></category>
            <category><![CDATA[sap-commerce]]></category>
            <category><![CDATA[sapcommercecloud]]></category>
            <category><![CDATA[github-actions]]></category>
            <category><![CDATA[ccv2]]></category>
            <dc:creator><![CDATA[Aswin Raghuraman]]></dc:creator>
            <pubDate>Sat, 02 Jul 2022 03:26:08 GMT</pubDate>
            <atom:updated>2022-07-01T10:55:10.127Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tJVvp5k7YbhPVm_ssv1ubg.png" /></figure><p><strong>SAP Commerce Cloud</strong> is a highly customizable, extension/module based, flexible &amp; scalable eCommerce Platform which is used by lot of high-end customers like Samsung, etc. It can be either hosted in our own cloud/on-premises environment or on the SAP supported cloud environment. The SAP supported PaaS provides all the infrastructure required to host the eCommerce Platform and run the eCommerce website.</p><p>The previously released CCV1 is based on SAP Cloud and it had lot of limitations. Later, SAP moved on to public cloud infrastructure ( Microsoft Azure Cloud) to host the SAP Commerce cloud. And its called CCV2. The customer can integrate their git repo and manually build &amp; deploy the code from the <a href="https://portal.commerce.ondemand.com/">SAP Commerce portal</a> to host their website without any downtime of storefront/OCC APIs, which is a BIG win.</p><p>To automate the whole process, SAP has recently released <a href="https://help.sap.com/docs/SAP_COMMERCE_CLOUD_PUBLIC_CLOUD/452dcbb0e00f47e88a69cdaeb87a925d/66abfe678b55457fab235ce8039dda71.html?locale=en-US">Commerce Cloud APIs</a> to build, deploy and track the progress. In this tutorial, we will create a executable GitHub action pipeline using APIs. Lets get started!</p><h3>GitHub Action Pipeline</h3><p>The below four stages are created in the pipeline to accomplish the task.</p><p>Follow the steps to create the pipeline</p><ol><li><strong>Navigate to GitHub Workflow</strong></li></ol><p>Navigate to the Github Code repository -&gt; <strong>Actions </strong>-&gt;click <strong>New Workflow</strong> Button</p><p>It should show the below page.</p><p>Here Click <strong>set up a workflow yourself</strong> link</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cCtUMJyb9-xuarGX2CscYw.png" /></figure><p>2. Create <strong>CCV2 Build/Deployment workflow</strong></p><p>After the step1, it will show the below file editor.</p><p>GitHub uses the YAML notation for the workflow definition. <a href="https://docs.github.com/en/actions">Read more on GitHub actions here</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/879/1*Smvh_ajCKFLBixWGGRBHhQ.png" /></figure><p>Delete the contents of this file and replace with the below content. <em>Source code </em><a href="https://gist.github.com/ashwinkumar83/4de232ec602cd00a3fd257a90dcc54a1"><em>here</em></a></p><p>Save the file to your repo. It will get saved in your code repo [ <a href="https://github.com/CSR-Limited/CSR.SAP.COMMERCECLOUD/tree/develop/.github">.github</a>/workflows/ ] and its ready for execution.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8cc4c21a4251d1e15e312b39450d171c/href">https://medium.com/media/8cc4c21a4251d1e15e312b39450d171c/href</a></iframe><h3>Understanding the <strong>pipeline</strong></h3><p><strong>Pipeline Trigger</strong></p><p>The pipeline is triggered using the below shown configuration</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/718/1*X2Vbp3Eza8_2eLZuI7vKvA.png" /></figure><p>In this specific pipeline, the pipeline will get triggered when a push happens to these branches. For testing purposes, only the Dev and Staging envs are configured in this pipeline. Once its mature, you can go ahead and configure it to deploy in Prod env as well. I’ll leave it to you.</p><p><strong>workflow_dispatch</strong>: Adding this command will enable the option of manual trigger of pipeline.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w3NfRpkiP4kM-TP8mxUvlg.png" /></figure><p>Navigate to the actions tab. Once you add this command, you should get the <strong>Run workflow</strong> . Click it to select the branches to deploy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/282/1*Yp0wiUcR0ZL_mCgpDnruDw.png" /></figure><p><strong>Configuration of Environment variables</strong></p><p>There are two kinds of variables configured in the pipeline</p><ol><li>Hardcoded environment variables</li><li>Secret keys from the repo. [<em> They are stored as GitHub secrets and while execution it will fetch the details</em> ]</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/755/1*56soGGEMRDX-BLQ1DYX11w.png" /></figure><p><strong>How to configure the secret keys in GitHub</strong></p><p>Navigate to the Code repo -&gt; Settings -&gt; Click Secrets -&gt; Actions ( as shown below)</p><p>Click the<strong> New Repository Secret</strong> button and add the following secret env keys/values</p><ul><li><strong>CCV2_AUTH_ACCESS_TOKEN </strong>— Create the API Access Token from your SAP Account <a href="https://portal.commerce.ondemand.com/">here</a></li><li><strong>CCV2_SUBSCRIPTION_CODE </strong>— Add your SAP Commerce subscription code here</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N5XCG-yQ2UhRM7TpZ8MaLQ.png" /></figure><h3><strong>Pipeline steps</strong></h3><ol><li><strong>Create Build </strong>— The CCV2 API to create the build will be invoked and get the build code generated in SAP Commerce cloud</li><li><strong>Create Build Progress </strong>— The CCV2 API to get the build details will be invoked every 10 mins to check the build status. After completion of the build, if the build is success it will proceed to the next deployment step.</li><li><strong>Create Deployment </strong>— The CCV2 API to create deployment will be invoked with the build and environment details. It will get the deployment code in response.</li><li><strong>Create Deployment Progress</strong> — The CCV2 API to get the deployment details will be invoked every 10 mins to check the deployment status. After completion of the deployment, the workflow will get completed.</li></ol><p>An email notification will be sent to the configured email addresses as below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2st5xdEs7OlEIrO-XCYm2Q.png" /></figure><h3><strong>Execution</strong></h3><p>The pipeline will get triggered when code is pushed to<em> develop or release/* branches</em>. [<em> In typical scenario, it happens after the PR is approved and merged</em>]</p><p>Click the <strong>actions </strong>tab, to view the list of workflows and the recent one which is in progress.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2TuS2vhzY2vmh3E1Z-FFuA.png" /></figure><p>Click of the <strong>workflow </strong>to get more details of the job. The steps can be expanded further to get more details of the job steps.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/511/1*28Xhx6hBKHknQk8jKoRQlw.png" /></figure><p>After the last step, the workflow will be marked as complete. Login and verify in the SAP Commerce Cloud portal. You should be able to see the same build and deployment of specified env.</p><h3><strong>Conclusion</strong></h3><p>The provided step by step process and code in the tutorial will enable you to run the pipeline in minutes. Hope you enjoyed reading this post.</p><p>Kindly give a like or clap on my post if you have learned something new and follow me to get more posts on SAP Commerce.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=daaf6abda0e3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/sap-commerce-cloud/cicd-build-deployment-in-sap-commerce-ccv2-from-github-actions-daaf6abda0e3">CICD Build &amp; Deployment in SAP Commerce CCV2 from GitHub Actions</a> was originally published in <a href="https://medium.com/sap-commerce-cloud">SAP Commerce Cloud</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SAP Commerce Cloud (CCV2) — Azure CICD Pipeline]]></title>
            <link>https://medium.com/sap-commerce-cloud/sap-commerce-cloud-ccv2-azure-cicd-pipeline-fc407b91b1b6?source=rss----bd41a29fd17---4</link>
            <guid isPermaLink="false">https://medium.com/p/fc407b91b1b6</guid>
            <category><![CDATA[ccv2]]></category>
            <category><![CDATA[sapcommercecloud]]></category>
            <category><![CDATA[cicd-pipeline]]></category>
            <category><![CDATA[ecommerce]]></category>
            <category><![CDATA[azure-devops]]></category>
            <dc:creator><![CDATA[Aswin Raghuraman]]></dc:creator>
            <pubDate>Sat, 02 Jul 2022 03:25:48 GMT</pubDate>
            <atom:updated>2022-06-06T02:03:26.680Z</atom:updated>
            <content:encoded><![CDATA[<h3>SAP Commerce Cloud (CCV2) — Azure CICD Pipeline</h3><p><strong>SAP Commerce Cloud</strong> is a highly customizable, extension/module based, flexible &amp; scalable eCommerce Platform which is used by lot of high-end customers like Samsung, etc. It can be either hosted in our own cloud/on-premises environment or on the SAP supported cloud environment. The SAP supported PaaS provides all the infrastructure required to host the eCommerce Platform and run the eCommerce website.</p><p>The previously released CCV1 is based on SAP Cloud and it had lot of limitations. Later, SAP moved on to public cloud infrastructure ( Microsoft Azure Cloud) to host the SAP Commerce cloud. And its called CCV2. The customer can integrate their git repo and manually build &amp; deploy the code from the <a href="https://portal.commerce.ondemand.com/">SAP Commerce portal</a> to host their website without any downtime of storefront/OCC APIs, which is a BIG win.</p><p>To automate the whole process, SAP has recently released <a href="https://help.sap.com/docs/SAP_COMMERCE_CLOUD_PUBLIC_CLOUD/452dcbb0e00f47e88a69cdaeb87a925d/66abfe678b55457fab235ce8039dda71.html?locale=en-US">Commerce Cloud APIs</a> to build, deploy and track the progress. In this tutorial, we will create a readily executable CICD Azure DevOps pipeline using APIs. Lets get started!</p><h3>Azure DevOps Pipeline</h3><p>The below four stages are created in the pipeline to accomplish the task.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QSyikv2shtUXD3fBy_VtmQ.png" /></figure><p>Follow the steps to create the pipeline</p><ol><li><strong>Create Pipeline</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VGsd_qwPLzYRk3IrjVQ6Sw.png" /></figure><p>2. <strong>Create or use the existing repo</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/1*aArp367OHV29vaUT1UPZVQ.png" /></figure><p>3. <strong>Configure the pipeline</strong></p><p><strong>Click Starter Pipeline</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/672/1*aBnB3UJGHK-HpgN8g88ugg.png" /></figure><p>4. <strong>Create the pipeline</strong></p><p>The APIs will need few parameters and API tokens to invoke. Instead of hardcoding those, the Azure DevOps secrets &amp; parameters can be used to get the user inputs.</p><p><strong>Parameters</strong></p><p>Branch Name, Build name, DB Update Mode , deployment strategy and environment details can be accessed through the user input from Azure Pipeline.</p><p>For eg.,</p><p>parameters:<br>- name: BRANCH_NAME<br> displayName: <strong>Branch Name</strong><br> type: string<br> default: develop</p><p>…</p><p><strong>Variables</strong></p><p>For execute the pipeline, the below variables should be created within Azure Pipeline</p><p>Click the Variables button on the right side</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vuEFzl46vhUhJP4gff_Qvw.png" /></figure><p><strong>Add the below variables</strong></p><p>These variables are used in pipeline to invoke the APIs.</p><p><strong>CCV2_AUTH_ACCESS_TOKEN </strong>— Create the API Access Token from your SAP Account <a href="https://portal.commerce.ondemand.com/">here</a> [ Check the option: <em>keep this value secret]</em></p><p><strong>CCV2_SUBSCRIPTION_CODE </strong>— Add your SAP Commerce subscription code here</p><p><strong>ccv2_url </strong>— <a href="https://portalapi.commerce.ondemand.com/v2/subscriptions">https://portalapi.commerce.ondemand.com/v2/subscriptions</a></p><p><strong>YAML File</strong></p><p>Remove all the lines from the starter pipeline yaml and add the below code</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ba090a93802268fb9c206a14b287dbbf/href">https://medium.com/media/ba090a93802268fb9c206a14b287dbbf/href</a></iframe><p>After your save the pipeline to your repo and click Run the pipeline.</p><p>It should look like this</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zqI8BNGFQCA6WXrCIy-y4g.png" /></figure><p>5. <strong>Run the pipeline</strong></p><p>Now you can provide your details and select the options to run the pipeline.</p><p>The build and deploy will be executed in stages and the deployment should get completed.</p><p>A successfully ran build will look like below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zZiGHkm4XwUiBJrFpUEFIg.png" /></figure><p>On failure or success, the invoker of the build will receive notifications from Azure DevOps.</p><p><strong>Conclusion</strong></p><p>The provided step by step process and code in the tutorial will enable you to run the pipeline in minutes. Hope you enjoyed reading this post.</p><p>Kindly like my post if you have learned something new and follow me to get more posts on SAP Commerce.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fc407b91b1b6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/sap-commerce-cloud/sap-commerce-cloud-ccv2-azure-cicd-pipeline-fc407b91b1b6">SAP Commerce Cloud (CCV2) — Azure CICD Pipeline</a> was originally published in <a href="https://medium.com/sap-commerce-cloud">SAP Commerce Cloud</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>