Coder Social home page Coder Social logo

jereze / alfred-salesforce Goto Github PK

View Code? Open in Web Editor NEW
21.0 21.0 6.0 4.51 MB

Search in Salesforce from your Mac (Alfred worklow)

License: Apache License 2.0

Python 95.83% HTML 1.79% Shell 2.38%
alfred alfred-workflow mac macos salesforce salesforce-api

alfred-salesforce's People

Contributors

jereze avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

alfred-salesforce's Issues

Fallback to search

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!

Error: 'NoneType' object has no attribute 'info'

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.

Stopped Working

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!

Sort order of results

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

Case objects missing

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.