jereze / alfred-salesforce Goto Github PK
View Code? Open in Web Editor NEWSearch in Salesforce from your Mac (Alfred worklow)
License: Apache License 2.0
Search in Salesforce from your Mac (Alfred worklow)
License: Apache License 2.0
It looks like every search is issuing an API call, so no Salesforce data is stored locally. Is that right?
If there are no results, instead of saying "No results for X" and leaving it at that, could I have another option to search Salesforce itself for the same term? So that at least I can be taken to the site and browse around until I find what I'm looking for. Thanks!
Installed this workflow on MacOS Ventura 13.2.1 and running in debug mode.
When I try and run the workflow -- here is (hopefully) the needed debut output.
###################################
[15:20:35.053] Salesforce[Script Filter] Script with argv 'wa' finished
[15:20:35.055] ERROR: Salesforce[Script Filter] Code 1: .
15:20:34 workflow.py:2278 DEBUG ---------- Salesforce (0.0.5) ----------
15:20:34 workflow.py:1681 DEBUG reading settings from /Users//Library/Application Support/Alfred/Workflow Data/jereze.salesforce/settings.json
15:20:34 workflow.py:2683 DEBUG update check not due
15:20:34 workflow.py:1904 DEBUG loading cached data: /Users//Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/jereze.salesforce/__workflow_latest_version.pickle
15:20:34 workflow.py:2787 DEBUG got password : jereze.salesforce:access_token
15:20:34 workflow.py:2787 DEBUG got password : jereze.salesforce:refresh_token
15:20:34 workflow.py:2787 DEBUG got password : jereze.salesforce:instance_url
15:20:34 salesforce_api.py:44 INFO API get call: https://**********.my.salesforce.com/services/data/v40.0/search/?q=FIND+%7Bwa%7D+IN+ALL+FIELDS+RETURNING+Account+%28Id%2C+Name%2C+Type%29%2C+Opportunity+%28Id%2C+Name%2C+StageName%2C+CloseDate%29%2C+Contact+%28Id%2C+Name%2C+Email%29%2C+Lead+%28Id%2C+Name%29+WITH+METADATA%3D%27LABELS%27+
15:20:34 workflow.py:2298 ERROR 'NoneType' object has no attribute 'info'
Traceback (most recent call last):
File "/Users//Library/Mobile Documents/comappleCloudDocs/etc/Alfred/Alfred.alfredpreferences/workflows/user.workflow.F3555F71-B24E-470B-8A93-B6F9153B841D/workflow/workflow.py", line 2292, in run
func(self)
File "/Users//Library/Mobile Documents/comappleCloudDocs/etc/Alfred/Alfred.alfredpreferences/workflows/user.workflow.F3555F71-B24E-470B-8A93-B6F9153B841D/salesforce_search.py", line 143, in main
results = sf.api_call('/services/data/v40.0/search/', parameters={
File "/Users//Library/Mobile Documents/comappleCloudDocs/etc/Alfred/Alfred.alfredpreferences/workflows/user.workflow.F3555F71-B24E-470B-8A93-B6F9153B841D/salesforce_api.py", line 51, in api_call
self.wf.logger.debug(r.text)
File "/Users//Library/Mobile Documents/comappleCloudDocs/etc/Alfred/Alfred.alfredpreferences/workflows/user.workflow.F3555F71-B24E-470B-8A93-B6F9153B841D/workflow/web.py", line 317, in text
if self.encoding:
File "/Users//Library/Mobile Documents/comappleCloudDocs/etc/Alfred/Alfred.alfredpreferences/workflows/user.workflow.F3555F71-B24E-470B-8A93-B6F9153B841D/workflow/web.py", line 282, in encoding
self._encoding = self._get_encoding()
File "/Users//Library/Mobile Documents/comappleCloudDocs/etc/Alfred/Alfred.alfredpreferences/workflows/user.workflow.F3555F71-B24E-470B-8A93-B6F9153B841D/workflow/web.py", line 409, in _get_encoding
headers = self.raw.info()
AttributeError: 'NoneType' object has no attribute 'info'
15:20:34 workflow.py:2322 DEBUG ---------- finished in 0.637s ----------
[15:20:35.063] Salesforce[Script Filter] {
"items": [
{
"title": "Error in workflow 'Salesforce'",
"subtitle": "'NoneType' object has no attribute 'info'",
"valid": false,
"icon": {
"path": "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/AlertStopIcon.icns"
}
}
]
}
####################################
Anything I'm missing? Thanks.
Not sure what happened, but this Alfred workflow to search Salesforce randomly stopped working. I'm using the latest version (v0.0.4).
Alfred 4.6.3
MacOS Monterey 12.3
This workflow is incredible, so I hope it can be updated or fixed to work again. If there's any way I can help troubleshoot this to get it working again I'm happy to help!
Hi,
When searching for opportunities, they get buried beneath the list of accounts & contacts. I always want to list opportunities first, not middle or last.
So, consider this your first feature request :) Thanks for the plugin!
#enhancement
Its amazing but I work on the support side and would like to search for a partial string like the last 4 numbers and have it query. Can this be added? I can test it but I don't know the exact change that would be needed.
The plugin tries to get the field Type
on Accounts (a standard field), but if this field is not visible in an organization, Salesforce API returns an error.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.