-
ChatterFeed
-
0Best Answers
-
1Likes Received
-
2Likes Given
-
6Questions
-
7Replies
capture case from google play/IOS store app Reviews.
Hi All,
I have a requirement where we want to capture case from google play/IOS store.
eg: I have an app (not sales force app let's say XYZ app). So, whenever User gives review on the google play store/IOS store for the app,it should create a case in Salesforce.
The doubts I have are :
1. Is this requirement is possible?
2. If yes, what are the limitations on the same?
I have a requirement where we want to capture case from google play/IOS store.
eg: I have an app (not sales force app let's say XYZ app). So, whenever User gives review on the google play store/IOS store for the app,it should create a case in Salesforce.
The doubts I have are :
1. Is this requirement is possible?
2. If yes, what are the limitations on the same?
- Shikha Devi 16
- December 28, 2017
- Like
- 0
- Continue reading or reply
Syn outlook public folder with Salesforce Calendar
Hi All,
Can we synchronize outlook group calendar with salesforce calendar.
eg: If i am creating a meeting with 5 Users as invites in outlook using public folder/team.
1. Will outlook group calendar syn with salesforce calendar and create event for all the group member added in the outlook group?
2. Salesforce Calendar will show the meeting with all invites name?
Can we synchronize outlook group calendar with salesforce calendar.
eg: If i am creating a meeting with 5 Users as invites in outlook using public folder/team.
1. Will outlook group calendar syn with salesforce calendar and create event for all the group member added in the outlook group?
2. Salesforce Calendar will show the meeting with all invites name?
- Shikha Devi 16
- September 01, 2017
- Like
- 0
- Continue reading or reply
Relationship Datatype in custom metadatatype?
Hi,
Can you please help to understand the functionality of relationship data type in custom meta data type? what is entity Defination in Custom meta data type?
Can you please help to understand the functionality of relationship data type in custom meta data type? what is entity Defination in Custom meta data type?
- Shikha Devi 16
- May 24, 2017
- Like
- 0
- Continue reading or reply
Navigation from one lightning component to another lightning component using Visual workflow
Hi All,
Can we use visual flow for navigating one component to another component?
Can we use visual flow for navigating one component to another component?
- Shikha Devi 16
- May 24, 2017
- Like
- 0
- Continue reading or reply
slds progress indicator css is not working properly.
HI,
I am working on lightning component where I need progress indicator. I am using slds progress indicator but it is not showing css same as shown in the slds guide.
I have used the same code mentioned in the guide.https://www.lightningdesignsystem.com/components/progress-indicator/#flavor-base-default
But still it is not showing connecting line of two button. please find screenshot of issue.
According to guide image bar should look like
Please help me on the same
Thanks
Shikha
I am working on lightning component where I need progress indicator. I am using slds progress indicator but it is not showing css same as shown in the slds guide.
I have used the same code mentioned in the guide.https://www.lightningdesignsystem.com/components/progress-indicator/#flavor-base-default
But still it is not showing connecting line of two button. please find screenshot of issue.
According to guide image bar should look like
Please help me on the same
Thanks
Shikha
- Shikha Devi 16
- May 11, 2017
- Like
- 1
- Continue reading or reply
Can we add lightning component in Visual Flow?
Hi,
Can we use visualflow to move from one component to another? OR visual flow provides functionality using lightning component in the screens?
Thanks
Shikha
Can we use visualflow to move from one component to another? OR visual flow provides functionality using lightning component in the screens?
Thanks
Shikha
- Shikha Devi 16
- May 03, 2017
- Like
- 0
- Continue reading or reply
slds progress indicator css is not working properly.
HI,
I am working on lightning component where I need progress indicator. I am using slds progress indicator but it is not showing css same as shown in the slds guide.
I have used the same code mentioned in the guide.https://www.lightningdesignsystem.com/components/progress-indicator/#flavor-base-default
But still it is not showing connecting line of two button. please find screenshot of issue.
According to guide image bar should look like
Please help me on the same
Thanks
Shikha
I am working on lightning component where I need progress indicator. I am using slds progress indicator but it is not showing css same as shown in the slds guide.
I have used the same code mentioned in the guide.https://www.lightningdesignsystem.com/components/progress-indicator/#flavor-base-default
But still it is not showing connecting line of two button. please find screenshot of issue.
According to guide image bar should look like
Please help me on the same
Thanks
Shikha
- Shikha Devi 16
- May 11, 2017
- Like
- 1
- Continue reading or reply
Navigation from one lightning component to another lightning component using Visual workflow
Hi All,
Can we use visual flow for navigating one component to another component?
Can we use visual flow for navigating one component to another component?
- Shikha Devi 16
- May 24, 2017
- Like
- 0
- Continue reading or reply
slds progress indicator css is not working properly.
HI,
I am working on lightning component where I need progress indicator. I am using slds progress indicator but it is not showing css same as shown in the slds guide.
I have used the same code mentioned in the guide.https://www.lightningdesignsystem.com/components/progress-indicator/#flavor-base-default
But still it is not showing connecting line of two button. please find screenshot of issue.
According to guide image bar should look like
Please help me on the same
Thanks
Shikha
I am working on lightning component where I need progress indicator. I am using slds progress indicator but it is not showing css same as shown in the slds guide.
I have used the same code mentioned in the guide.https://www.lightningdesignsystem.com/components/progress-indicator/#flavor-base-default
But still it is not showing connecting line of two button. please find screenshot of issue.
According to guide image bar should look like
Please help me on the same
Thanks
Shikha
- Shikha Devi 16
- May 11, 2017
- Like
- 1
- Continue reading or reply
Is there any way to connect Apple Appstore and Google Play store to salesforce like a 2 way communication?
Hi ,
I have a requirement where in I need to bring the reviews from Google Play store and Apple AppStore to Salesforce .
I need to get the reviews and comments from both the AppStore and playstore related to some own app into the salesforce .
Is there any way to do that ? Is it even possible?
- KKBandi1
- April 02, 2017
- Like
- 2
- Continue reading or reply
Trailhead: Coverage 100% but challenge failed
I have this very simple class..
When I run the Test class from the Developer Console I get 100% of coverage on the RestrictContactByName class but, when I check the challenge on the trailhead it returns the error:
Challenge not yet complete... here's what's wrong: The 'RestrictContactByName' class did not achieve 100% code coverage via your test methods
Has someone had my same issue?
trigger RestrictContactByName on Contact (before insert, before update) { //check contacts prior to insert or update for invalid data For (Contact c : Trigger.New) { if(c.LastName == 'INVALIDNAME') { //invalidname is invalid c.AddError('The Last Name "'+c.LastName+'" is not allowed for DML'); } } }.. and the corresponding Test Class:
@isTest private class TestRestrictContactByName { @isTest static void metodoTest() { List listaContatti = new List(); Contact c1 = new Contact(FirstName='Francesco', LastName='Riggio'); Contact c2 = new Contact(LastName = 'INVALIDNAME'); listaContatti.add(c1); listaContatti.add(c2); //insert listaContatti; // Perform test Test.startTest(); Database.SaveResult [] result = Database.insert(listaContatti, false); Test.stopTest(); c1.LastName = 'INVALIDNAME'; update c1; } }
When I run the Test class from the Developer Console I get 100% of coverage on the RestrictContactByName class but, when I check the challenge on the trailhead it returns the error:
Challenge not yet complete... here's what's wrong: The 'RestrictContactByName' class did not achieve 100% code coverage via your test methods
Has someone had my same issue?
- Andrea Ianni
- June 24, 2015
- Like
- 0
- Continue reading or reply
list view print functionality in lightning
I have developed code to over come limitation of print option for list view.
VF Page
Controller class
Lightning component
Component controller JS
Helper classes
You can modify this code any other object you wish to implement.
Create listview button with the VF page.
VF Page
<apex:page sidebar="false" standardStylesheets="false" cache="false" standardController="Account" recordSetVar="accounts" lightningStylesheets="true"> <button id="upload-button" onclick="window.print();" style="margin-left: 50%;" Class="slds-button">Print</button> <apex:includeLightning /> <div id="lightning" ></div> <script> $Lightning.use("c:ListView", function() { $Lightning.createComponent("c:ListViewComponent", { label : "" }, "lightning", function(cmp) { }); }); </script> </apex:page>
Controller class
public with sharing class ListViewController { // Method to get all list view option available for the Account object @AuraEnabled public static List<SelectOption> getListViews(){ SelectOption lstView=new SelectOption ('--None--','--None--'); List<SelectOption> listviews = new List<SelectOption>(); listviews.add(lstView); for(ListView lstObj : [SELECT Id, Name FROM ListView WHERE SobjectType = 'Account' order by name ASC]){ listviews.add(new SelectOption (lstObj.id,lstObj.name)); } return listviews; } // Method to get the Account records based on the selected list view @AuraEnabled public static DynamicTableMapping getFilteredAccounts(String filterId){ list<string> headervalue =new list<string>(); HttpRequest req = new HttpRequest(); String baseUrl = URL.getSalesforceBaseUrl().toExternalForm(); String endPoinURL = baseUrl+'/services/data/v32.0/sobjects/Account/listviews/'+filterId+'/describe'; req.setEndpoint(endPoinURL); req.setMethod('GET'); req.setHeader('Authorization', 'Bearer ' + UserInfo.getSessionId()); Http http = new Http(); HTTPResponse response = http.send(req); Map<String, Object> tokenResponse = (Map<String, Object>) JSON.deserializeUntyped(response.getBody()); String query = (String) tokenResponse.get('query'); system.debug('query--->'+query); for(string s:query.split(',')){ s=s.trim(); if(s.startsWith('SELECT')){ headervalue.add((s.removeStart('SELECT')).trim()); }else if(!s.startsWith('SYSTEMMODSTAMP') && !s.equalsIgnoreCase('SYSTEMMODSTAMP FROM ACCOUNT ORDER BY NAME ASC NULLS FIRST') && !s.contains('ASC')){ headervalue.add(s.trim()); } } List<ObjectValueMap> AccountList = new List<ObjectValueMap>(); for(Account accountObj : database.query(query)){ Map<String, Schema.SObjectField> objectFields = Account.getSObjectType().getDescribe().fields.getMap(); list<FieldValues> fieldValue=new list<FieldValues>(); for(string s:headervalue){ Schema.DescribeFieldResult dr; if (objectFields.containsKey(s)) dr = objectFields.get(s).getDescribe(); if(null!=dr) fieldValue.add(new FieldValues(string.valueof(null==accountObj.get(dr.getName())?'':accountObj.get(dr.getName())))); else fieldValue.add(new FieldValues(string.valueof(''))); } AccountList.add(new ObjectValueMap(accountObj,fieldValue)); } return new DynamicTableMapping(headervalue,AccountList); } }
Lightning component
<aura:component controller="ListViewController" implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes,force:lightningQuickAction" access="global" > <aura:handler name="init" value="{!this}" action="{!c.doInit}"/> <aura:attribute name="AccountListViewList" type="SelectOption[]"/> <aura:attribute name="AccountList" type="DynamicTableMapping"/> <aura:attribute name="fieldList" type="string[]"/> <ui:inputSelect class="slds-select slds-size_small" aura:id="selectedViewId" label="Account View" change="{!c.getFilteredAccount}"> <aura:iteration items="{!v.AccountListViewList}" var="listview"> <ui:inputSelectOption text="{!listview.value}" label="{!listview.label}"/> </aura:iteration> </ui:inputSelect> <br/><br/> <table class="slds-table slds-table_bordered slds-table_cell-buffer"> <thead> <tr class="slds-text-title_caps"> <aura:iteration items="{!v.fieldList}" var="item"> <th scope="col"> <div class="slds-truncate" title="{!item}">{!item}</div> </th> </aura:iteration> </tr> </thead> <tbody> <aura:iteration items="{!v.AccountList}" var="item" indexVar="index"> <tr> <aura:iteration items="{!item.values}" var="item1"> <td> {!item1.value} </td></aura:iteration> </tr> </aura:iteration> </tbody> </table> </aura:component>
Component controller JS
({ doInit : function(component, event, helper){ var action = component.get("c.getListViews"); action.setCallback(this, function(response){ var state = response.getState(); if (state === "SUCCESS") { component.set("v.AccountListViewList",response.getReturnValue()); } }); $A.enqueueAction(action); }, getFilteredAccount : function (component, event, helper) { var selected = component.find("selectedViewId").get("v.value"); var action = component.get("c.getFilteredAccounts"); action.setParams({filterId : selected}); action.setCallback(this, function(response){ var state = response.getState(); if (state === "SUCCESS") { component.set("v.AccountList",response.getReturnValue().value); component.set("v.fieldList",response.getReturnValue().headervalues); } }); $A.enqueueAction(action); }, })
Helper classes
public class DynamicTableMapping { @AuraEnabled public list<string> headervalues{get;set;} @AuraEnabled public list<ObjectValueMap> value{get;set;} public DynamicTableMapping(list<string> headervalues,list<ObjectValueMap> value){ this.headervalues=headervalues; this.value=value; } } --- Value map class-- public class ObjectValueMap { @AuraEnabled public account account{get;set;} @AuraEnabled public list<fieldValues> values{get;set;} public ObjectValueMap(account acc,list<fieldValues> values){ this.account=acc; this.values=values; } } -- Field values class-- public class FieldValues { @auraenabled public object value{get;set;} public FieldValues(object value){ this.value=value; } }
You can modify this code any other object you wish to implement.
Create listview button with the VF page.
- vijay kumar 495
- November 30, 2017
- Like
- 2
- Continue reading or reply
Is there any way to connect Apple Appstore and Google Play store to salesforce like a 2 way communication?
Hi ,
I have a requirement where in I need to bring the reviews from Google Play store and Apple AppStore to Salesforce .
I need to get the reviews and comments from both the AppStore and playstore related to some own app into the salesforce .
Is there any way to do that ? Is it even possible?
- KKBandi1
- April 02, 2017
- Like
- 2
- Continue reading or reply