• REVNA
  • NEWBIE
  • 65 Points
  • Member since 2016

  • Chatter
    Feed
  • 2
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 7
    Questions
  • 21
    Replies
Hello,

I have hidden groups and chatter from a profile,
but if he makes search with the group name, he is still able to find it.

How can i completely remove access to groups ?
  • September 16, 2016
  • Like
  • 0
I am unable to pick language on a new Omni Script. I am pretty new to Vlocity products. Please help me outI am unable to pick the language in the above screen (newbie to Vlocity) ; please help
  • August 11, 2023
  • Like
  • 0
 
<ul class="navAU" >
        <aura:iteration items="{!v.menuItemsLevel1}" var="menu1">
            <li  class="li-padding" >
                <a onclick="{!c.openMenuLevel1}" style="font-family:'AeroportMedium';font-weight:400;"  class="dropdown-au anchor menu-level1 a-no-decor"> 
                    {!menu1.menuItemForNav.Menu_Name__c}
                    &nbsp;
                    <span class="caret"></span>
                </a>
                <aura:if isTrue="{!menu1.hasChildren}">
                    <ul class="{!(v.isShowMenu == 'hide'?'dropdown-content-hide':'dropdown-content dropdown-content-show')}">
                        <aura:iteration items="{!v.menuItemsLevel2}" var="menu2">
                            <aura:if isTrue="{!menu2.menuItemForNav.Parent_Menu__c == menu1.menuItemForNav.Id}">
                                <li class="li-padding">
                                    <a  style="font-family:'AeroportMedium';" href="/B2BAUSECOMMERCE/ccrz__ProductList" class="dropdown-au a-no-decor menu-level2">
                                        {!menu2.menuItemForNav.Menu_Name__c}
                                    </a>
                                </li>
                            </aura:if>
                        </aura:iteration>
                    </ul>
                </aura:if>
            </li>
        </aura:iteration>
        <li class="">
            <a href="" class="menu-level1 dropdown a-no-decor"  data-menuid="10B2BAUSECOMMERCEORDER" role="button" aria-haspopup="true" aria-expanded="false">
                {!v.AU_MOBILE_MENU[0]}	&nbsp;
                <span class="caret"></span>
            </a> 
            <ul class="dropdown-content">
                <li style="color:black" class="">
                    <aura:iteration items="{!v.AU_MOBILE_MENU}" var="menu2">
                        <a href=""  data-toggle="dropdown" data-menuid="10B2BAUSECOMMERCEORDER" role="button" aria-haspopup="true" aria-expanded="false">
                            {!menu2}
                        </a> 
                        
                    </aura:iteration>
                </li>
            </ul>
        </li>
    </ul>
.THIS .dropdown-au:hover+.dropdown-content {
		display: block;
		position: static;
		float: none;
		width: auto;
		margin-top: 0;
		background-color: transparent;
		border: 0;
		-webkit-box-shadow: none;
		box-shadow: none;
		overflow: hidden;
	}

Current
I am using HOVER to open the dropdown on click. But on click on the same menu header it does not collapse. I am unable to inject styles using salesforce lightning addclass & removeclass ; this lies within Aura if.

Please let me know a way to hide the menu on click of the "SAMPLE" again
  • February 09, 2021
  • Like
  • 0
Hi all , 
I have a map attribute in lightning salesforce. 
<aura:attribute name="productList" type="map"/>

This attribute is used in the table to loop and form row data.
<aura:iteration items="{!v.productList}" var="pro">
               <tr>
                  <td>
                     <div class="slds-truncate" title="{!pro.supplier}" name="{!'index' + pro}">{!pro.supplier}</div>
                  </td>
</tr>

I want to be able to reset the data of only row using lightning event. Because each row has a picklist in it as the cell value.
I don't know how to reset the value of one element in the map based on a key field (which is row count - index).
  • July 08, 2020
  • Like
  • 0
I am using below code to create a File in Apex and attach it to one of the LEads. 
The PDF file type does get attached . But when I preview it / Download it - there are errors. 
"Preview not available" OR "Error loading Files". 
Any idea what mistake I am doing ? 
Blob yourFiles = Blob.valueOf(‘MONDAY TUESDAY WEDNESDAY THURSDAY FRIDAY’);
ContentVersion conVer = new ContentVersion();
conVer.ContentLocation = ‘S’;
conVer.PathOnClient = ‘test’+’.’+’pdf’;
conVer.Title = ‘Sample’;
conVer.VersionData = EncodingUtil.base64Decode(s);
conVer.origin = ‘H’;
insert conVer;
Id conDoc = [SELECT FileExtension ,ContentDocumentId FROM ContentVersion WHERE Id =:conVer.Id].ContentDocumentId;
ContentVersion cv =
[SELECT Title, FileExtension, VersionData, ContentDocumentId,
ContentLocation, FileType
FROM ContentVersion
WHERE ContentDocumentId = :conDoc
AND IsLatest = true];
//Create ContentDocumentLink
ContentDocumentLink cDe = new ContentDocumentLink();
cDe.ContentDocumentId = conDoc;
cDe.LinkedEntityId = ‘XXXXXXXXX’;
cDe.ShareType = ‘I’;
cDe.Visibility = ‘InternalUsers’;
insert cDe;

 
  • September 30, 2019
  • Like
  • 0
I am send an email WITH ATTACHMENT to the Account using Apex class. And this is recorded in the past activity. 
User-added imageThe above picture shows there is an attachment. And the email that was sent successfully send the attachment. 
But when I look at the past activity that is captured on the record and when I try to FORWARD / REPLY - the attchment is never sent. 

 
  • May 31, 2019
  • Like
  • 0
public static String AUTH_PROVIDER_ID = ma_Constants__c.getInstance().Auth_Provider_ID__c;
system.debug('=AUTH PROVIDER VALUE=='+AUTH_PROVIDER_ID);
String accessToken = Auth.AuthToken.getAccessToken(AUTH_PROVIDER_ID, 'Open ID Connect') ;
system.debug('---ACCESS TOKEN---'+accessToken);

I get the return value to be NULL. What are the possible things that could be causing the issue.
 
  • June 27, 2018
  • Like
  • 0
Why am I thrown out of the mobile app , when I try to convert a lead. It opens up in a broswer once I click on Convert lead
  • March 15, 2016
  • Like
  • 0
I am unable to pick language on a new Omni Script. I am pretty new to Vlocity products. Please help me outI am unable to pick the language in the above screen (newbie to Vlocity) ; please help
  • August 11, 2023
  • Like
  • 0
Hi all , 
I have a map attribute in lightning salesforce. 
<aura:attribute name="productList" type="map"/>

This attribute is used in the table to loop and form row data.
<aura:iteration items="{!v.productList}" var="pro">
               <tr>
                  <td>
                     <div class="slds-truncate" title="{!pro.supplier}" name="{!'index' + pro}">{!pro.supplier}</div>
                  </td>
</tr>

I want to be able to reset the data of only row using lightning event. Because each row has a picklist in it as the cell value.
I don't know how to reset the value of one element in the map based on a key field (which is row count - index).
  • July 08, 2020
  • Like
  • 0
I am using below code to create a File in Apex and attach it to one of the LEads. 
The PDF file type does get attached . But when I preview it / Download it - there are errors. 
"Preview not available" OR "Error loading Files". 
Any idea what mistake I am doing ? 
Blob yourFiles = Blob.valueOf(‘MONDAY TUESDAY WEDNESDAY THURSDAY FRIDAY’);
ContentVersion conVer = new ContentVersion();
conVer.ContentLocation = ‘S’;
conVer.PathOnClient = ‘test’+’.’+’pdf’;
conVer.Title = ‘Sample’;
conVer.VersionData = EncodingUtil.base64Decode(s);
conVer.origin = ‘H’;
insert conVer;
Id conDoc = [SELECT FileExtension ,ContentDocumentId FROM ContentVersion WHERE Id =:conVer.Id].ContentDocumentId;
ContentVersion cv =
[SELECT Title, FileExtension, VersionData, ContentDocumentId,
ContentLocation, FileType
FROM ContentVersion
WHERE ContentDocumentId = :conDoc
AND IsLatest = true];
//Create ContentDocumentLink
ContentDocumentLink cDe = new ContentDocumentLink();
cDe.ContentDocumentId = conDoc;
cDe.LinkedEntityId = ‘XXXXXXXXX’;
cDe.ShareType = ‘I’;
cDe.Visibility = ‘InternalUsers’;
insert cDe;

 
  • September 30, 2019
  • Like
  • 0
Hello,

I have hidden groups and chatter from a profile,
but if he makes search with the group name, he is still able to find it.

How can i completely remove access to groups ?
  • September 16, 2016
  • Like
  • 0
I need to write an apex trigger that takes information from some of Opportunity fields and uses them to generate a value for a custom field.
For example, say I have a custom field called "All Opportunity Members." When I create a new opportunity or any time it is edited, the trigger should fire and (using apex code i would write) and populate the Area Code field with the Opportunity Contact Role Members and the Opportunity team members.

The problem is that the triggers I write don't seem to fire correctly. I just start to learn how to write a little code but I am struggling. How can I make a trigger that fires correctly when a record is created or edited?
 
Hi All,
Please help on the below scenario:
  • There  are 2 different roles hierarchy for Manager say M1 & M2
  • M1 has S1 as subordinate and M2 has S2 as subordinate
  • S2 has manually shared few records with S1
I want M1 to not see the records manually shared by S2 to S1.

Please guide me on this.

Thanks,
Nitin
Does Salesforce1 support translation for recordtypes ?As we have some recordtypes for Accounts tarnslated via translated workbench but these value are not available in Salesforce1.
HI Folks, 

What purpose we  can use seeAllData=true,in realtime.. Like what is the basic approach of using this ? I want to  know the realtime  functionality behind this.

Thanks 
Is there any way to know within a validation rule if the record is being evaluated is inserted (first time ) or updated ?

Example: I have this formula in a Validation Rule:

Total_Montos_Financiamiento__c -  PRIORVALUE(Monto__c) +  Monto__c >   Proyecto__r.Importe_Regla_Validacion__c

But when the record is being inserted for fist time, the system dont have PRIORVALUE, but the same amount I 'm trying to save and I want that the PRIORVALUE will be 0 (not the Amount) .

Any help? please!
hii tis is ajay,
Q,while deploying from sandbox to production by using changesets which components it doesnt support?
Can Any One explain in which situation we have to use Wrapperclass ?
I have a checkbox field called "Primary Contact" on the account level.

This field also shows up on the Contact Related list on the Account Object.

I want to create a custom field on the Account object, which counts and tells me how many contacts have "Primary Contact" box checked.

Could someone help me with the trigger to create that please?
Hi,
I am trying to create a new unit test for a trigger I am creating based on this example. 
https://developer.salesforce.com/docs/atlas.en-us.196.0.sos.meta/sos/service_cloud_guides-auto_case_pop.htm
trigger SOSCreateCaseCustom on SOSSession (before insert) {
    List<SOSSession> sosSess = Trigger.new;
    for (SOSSession s : sosSess) {
        try {
            Case caseToAdd = new Case();
            caseToAdd.Subject = 'SOS Video Chat';
            if (s.ContactId != null) {
                caseToAdd.ContactId = s.ContactId;
            } else {
                List<Contact> contactInfo = [SELECT Id from Contact WHERE Email = :s.AppVersion];
                if (!contactInfo.isEmpty()) {
                    caseToAdd.ContactId = contactInfo[0].Id;
                    s.ContactId = contactInfo[0].Id;
                }
            }
            insert caseToAdd; s.CaseId = caseToAdd.Id;
        }catch(Exception e){}
    }
}

Here is the unit test I created for the trigger.
@isTest
private class SOSCreateCaseCustomTest {
	static testMethod void validateSOSCreateCase() {
        init();
        Test.startTest();
        
        String caseSubject = 'SOS Video Chat';
        
		// set up case to add 
        Case caseToAdd = new Case(Subject='SOS Video Chat');
        insert caseToAdd;
        
		Case ca = [SELECT Subject, ContactId from Case where Subject =: caseSubject];
		System.assertEquals(caseSubject, ca.Subject);
        
        Test.stopTest();
	}
}

The unit test doesn't seem to test against the trigger I created above. How can I map this unit test to the trigger? Thanks.
 
I just upgraded to v 36 and now when I try to deploy to server, I get 'Destination organization must be different from the Project organization.' when I am entering my credentials

Hopefully this is just a setting I can switch somewhere and I don't have to go back to an older version.