• hs dsd 10
  • NEWBIE
  • 0 Points
  • Member since 2022

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 4
    Replies
We have configured single sign on and want users to login to salesforce through SSO when using the salesfrce mobile app. Users have installed the salesforce app on their mobile device and when they click the single sign on button, it asks users to 'To enroll your device, install the free Microsoft Intune Company Portal app'. However the Intune app is already installed by default for users in our org.
Has anyone else had this issue or something similar when trying to login to the salesforce mobile app and figured out a workaround?

Steps followed to reproduce:
Method 1 : Login with username and password (Salesforce credentials), works fine.
Method 2 : Go to Salesforce Mobile app

• Change the custom domain to company name, so we get the SSO button to appear on the mobile app and login through SSO
• When we click the SSO link, it redirects to Microsoft login page.
• Primary authentication is successful, and we are receiving an authentication notification on Microsoft Authenticator.
• On clicking on Approve, it re-directs to Play Store to install Microsoft Intune Company Portal.
• Microsoft InTune is already installed on the Mobile Devices.
• Devices tested : Windows 10 laptop, Android Mobile Device, Iphone.
We have tried the following:
  • Deactivated Google Chrome on Android device, no luck with the default browser.
  • Updated the InTune policies, no luck.
  • Windows 10 device is updated with the latest sync policies, no luck.
  • Checked the domain settings in salesforce to 'Use the native browser for user authentication on iOS and Android'. No luck.
  • We raised it with our Microsoft team to investigate. They have indicated that it is an issue with the salesforce mobile app.
Any info would be much appreciated. 

thanks
Hi Team,

I am doing a trailhead challenge my output is  showing the result twice .
Can anyone help me out what could be the  issue 
html file :
<template>
    <div>
        <div>Name: {name}</div>
        <div>Description: {description}</div>
        <lightning-badge label={material}></lightning-badge>
        <lightning-badge label={category}></lightning-badge>
        <div>Price: {price}</div>
        <div><img src={pictureUrl}/></div>
    </div>
</template>

Xml file :

<?xml version="1.0" encoding="UTF-8"?>
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
    <apiVersion>51.0</apiVersion>
    <isExposed>true</isExposed>
       <targets>
        <target>lightning__AppPage</target>
        <target>lightning__RecordPage</target>
        <target>lightning__HomePage</target>
        <target>lightningCommunity__Page</target>
    </targets>
</LightningComponentBundle>


Js file :

import { LightningElement } from 'lwc';
export default class BikeCard extends LightningElement {
    name = 'Electra X4';
    description = 'A sweet bike built for comfort.';
    category = 'Mountain';
    material = 'Steel';
    price = '$2,700';
    pictureUrl = 'https://s3-us-west-1.amazonaws.com/sfdc-demo/ebikes/electrax4.jpg';
}

Thanks,
Vijay.User-added image
Hello,

I am doing task where i want to delete share record but its giving me an error as shown below. 
"Insufficient Privileges
You do not have the level of access necessary to perform the operation you requested. Please contact the owner of the record or your administrator if access is necessary. For more information, see Insufficient Privileges Errors."

Account {"Party_Sea_ID__c":8375,"Customer_Number__c":"C3092","Name":"VILLAGE JEWELRY OUTLET OF KANNAPOLIS, INC.","DBA_Name__c":"VILLAGE JEWELRY OUTLET OF KANNAPOLIS, INC.","Customer_Group_Id__c":"a0028000015lr7TAAQ","OwnerId":"00528000003iGolAAE","owner1__c":"00528000003iL8FAAU","Terms_Id__c":"a042800000oV26ZAAS","Default_Currency__c":"US DOLLARS","No_of_Doors__c":0,"NumberOfEmployees":0,"Store_Size__c":0,"Status__c":0,"Sales_Code__c":"NONE","RecordTypeId":"01228000000QbiM","Asset_Credit_Limit__c":0,"Memo_Credit_Limit__c":0,"Outstanding_A_R_Balance__c":0,"Outstanding_Memo_Balance__c":0} Delete_Share: execution of BeforeUpdate caused by: System.DmlException: Delete failed. First exception on row 0 with id 00r28000020WN31AAG; first error: DELETE_FAILED, cannot delete owner or rule share rows, id=00r28000020WN31: [] Trigger.Delete_Share: line 29, column 1

My trigger is as followed.

trigger Delete_Share on Account (before update) {


set<Id> AccountIDs = new Set<Id>();
for(Account a: trigger.new){
AccountIDs.add(a.id);
}
List<AccountShare> jobShares = new List<AccountShare>();

map<String,AccountShare>accountShareMap = new Map<String,AccountShare>();

for(AccountShare accShare : [select AccountId,UserOrGroupId from AccountShare where AccountId in :AccountIds])
{
 accountShareMap.put(String.valueOf(accShare.UserOrGroupId),accShare);

}

for(Account a : trigger.new){
Account oldAccount = Trigger.OldMap.get(a.id);
if (a.owner1__c != null && a.owner1__c !=oldAccount.owner1__c) {
 
   AccountShare accountRecord = accountShareMap.get(string.valueOf(oldAccount.owner1__c)); 
    if (accountRecord  != null)
    jobShares.add(accountRecord);
  }
 }

if(jobShares.isEmpty() == false){
 delete jobShares;
 }
}

29th line is this :  delete jobShares;

Please help me. i dont know why is this happening.

Thanks & Best Regards,
Utkarsha
Am quite new to lightning and trying to sumup two numbers so far i have created component for suming numbers  in one component and another compnennt for display the result.
But getting error as "This page has an error. You might just need to refresh it. Action failed: c$UserInput$controller$Pressme [Cannot read property 'setParams' of null]  Failing descriptor: {c$UserInput$controller$Pressme}"

Here is my code:
 UserInput.cmp
 <aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes" access="global" >
<aura:registerEvent name="loadMyEvent" type="c:Result"/>
    <aura:attribute name="input1" type="integer"/>
<p>hello from component1</p>
<br/>
<ui:inputnumber aura:id="input1" label="first value" required="true"/>
<ui:inputnumber aura:id="input2" label="secondvalue" required="true"/>
<ui:button label="sum" press="{!c.Pressme}"/>
<br/>
</aura:component>

UserInputController.js

({
Pressme:function(component,event,helper){
    alert('test');
var get_num1=component.find("input1").get("v.value");
    alert('test1=='+get_num1);
var get_num2=component.find("input2").get("v.value");
    alert('test2=='+ get_num2);
var res=parseInt(get_num1)+parseInt(get_num2);
    alert('result=='+ res);
//var evt=$A.get("e.c:Result");
    component.getEvent("Result").setParams({"pass_result":res}).fire();
//evt.setparam({"pass_result": 5});
    //evt.fire();
}
})


DisplayResult.cmp

<aura:component >
<aura:attribute name="Get_Result" type="Integer"/>
<aura:handler event="c:Result" action="{!c.getvaluefromApplicationEvent}"/>
The Result is {!v.Get_Result}
</aura:component>

DisplayResultcontroller.js

({
getvaluefromApplicationEvent:function(cmp,event){
var showresultvalue= event.getparam("pass_result");
cmp.set("v.Get_Result",showResultValue);
}
})

Result.evt

<aura:event type="application" description="Event template">
<aura:attribute name="pass_result" type="string"/>
</aura:event>

Thanks in advance...